Documentation ¶
Index ¶
- Constants
- Variables
- type Character
- type ComicGen
- type ComicType
- type Emotion
- type Message
- type MultiBounds
- func (m *MultiBounds) AddBound(l, t, r, b float64)
- func (m *MultiBounds) AddStringBounds(l, t, r, b float64)
- func (m *MultiBounds) Bounds() (l, t, r, b float64)
- func (m *MultiBounds) GetBound(i int) (float64, float64, float64, float64)
- func (m *MultiBounds) Length() int
- func (m *MultiBounds) Offset(offset *MultiBounds) *MultiBounds
- type Script
Constants ¶
View Source
const ( EmotionAngry Emotion = "angry" EmotionBored = "bored" EmotionHappy = "happy" EmotionHi = "hi" EmotionIdle = "idle" EmotionLove = "love" EmotionMe = "me" EmotionQuestion = "question" EmotionSad = "sad" EmotionScared = "scared" EmotionSmug = "smug" EmotionWalk = "walk" EmotionYell = "yell" EmotionYou = "you" )
All the possible emotion states.
Variables ¶
View Source
var CharacterNames = []string{}
Functions ¶
This section is empty.
Types ¶
type Character ¶
type Character struct { FileName string Name string Width int Height int Emotions map[Emotion][]int }
A Character contains the information necessary to draw one character in a comic.
type ComicGen ¶
ComicGen is a comic generator!
func NewComicGen ¶
NewComicGen creates a new comic generator.
type MultiBounds ¶
MultiBounds is a struct containing bounds information for multiple lines of text.
func (*MultiBounds) AddBound ¶
func (m *MultiBounds) AddBound(l, t, r, b float64)
AddBound will add a new bound.
func (*MultiBounds) AddStringBounds ¶
func (m *MultiBounds) AddStringBounds(l, t, r, b float64)
AddStringBounds will add a new bound and automodify the bound to be positioned on the next line.
func (*MultiBounds) Bounds ¶
func (m *MultiBounds) Bounds() (l, t, r, b float64)
Bounds returns the total bounds of all lines.
func (*MultiBounds) Length ¶
func (m *MultiBounds) Length() int
Length returns the number of lines contained in the MultiBounds.
func (*MultiBounds) Offset ¶
func (m *MultiBounds) Offset(offset *MultiBounds) *MultiBounds
Offset returns a new MultiBound offset by another.
Click to show internal directories.
Click to hide internal directories.