Versions in this module Expand all Collapse all v0 v0.1.0 Jan 14, 2024 Changes in this version + const EmotionAngry + const EmotionBored + const EmotionHappy + const EmotionHi + const EmotionIdle + const EmotionLove + const EmotionMe + const EmotionQuestion + const EmotionSad + const EmotionScared + const EmotionSmug + const EmotionWalk + const EmotionYell + const EmotionYou + const ReplacementUnicode + func CharacterNames() string + type Cast struct + CharacterSets []*CharacterSet + func (c *Cast) AddCharacterSet(cs *CharacterSet) error + func (c *Cast) GetCharacterSetByName(name string) *CharacterSet + func (c *Cast) GetCharacters() []*Character + func (c *Cast) LoadFromDirectory(path string) error + type Character struct + Chance int + Emotions map[Emotion][]int + FileName string + Height int + Image image.Image + Name string + Width int + func (c *Character) GetFrame(message string) int + func (c *Character) MaxFrame() int + type CharacterSet struct + Author string + AuthorID string + Characters []*Character + History string + Locations []*Location + Name string + func (cs *CharacterSet) GetMap() map[string]*Character + func (cs *CharacterSet) GetRandomCharacters() []*Character + func (cs *CharacterSet) LoadFromFile(path string) error + type ComicGen struct + func NewComicGen(font string, useGoogleEmoji bool) *ComicGen + func (comic *ComicGen) MakeComic(script *Script) (img image.Image, err error) + type ComicType int + const ComicTypeChat + const ComicTypeSimple + const ComicTypeTragedy + type Emotion string + type Location struct + FileName string + Name string + type Message struct + Author string + ImageUrl string + Replacements map[string]string + Text string + type MultiBounds struct + AllBounds [][]float64 + LineHeight float64 + 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 struct + Author string + Avatars map[string]string + Messages []*Message + Room string + Type ComicType