Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Color ¶ added in v0.3.0
type Color int
Color is type of colors
func ColorFromString ¶ added in v0.3.0
ColorFromString convert string to Color type
type EmojiDrawer ¶
type EmojiDrawer struct {
// contains filtered or unexported fields
}
EmojiDrawer is the struct for drawing emoji
func NewEmojiDrawer ¶
func NewEmojiDrawer(bundlePath string) (*EmojiDrawer, error)
NewEmojiDrawer returns initialized EmojiDrawer
func (*EmojiDrawer) GenerateEmoji ¶
func (e *EmojiDrawer) GenerateEmoji(emoji *EmojiInfo) ([]byte, error)
GenerateEmoji generate the image of emoji and returns it as []byte format
type EmojiInfo ¶ added in v0.3.0
EmojiInfo is the struct that store emoji info by users
func NewEmojiInfoFromLine ¶ added in v0.3.0
NewEmojiInfoFromLine parse text into EmojiInfo
Click to show internal directories.
Click to hide internal directories.