Documentation ¶
Index ¶
- func LoadFont(path string) (*truetype.Font, error)
- type Gummy
- func (g *Gummy) DrawText(text, textColor string, fontSize, xPosition, yPosition int) error
- func (g *Gummy) DrawTextCenter(text string, textColor string) error
- func (g *Gummy) DrawTextSize(textColor string) error
- func (g *Gummy) Get(format string, r io.Writer) error
- func (g *Gummy) GetGif() ([]byte, error)
- func (g *Gummy) GetJpeg() ([]byte, error)
- func (g *Gummy) GetPng() ([]byte, error)
- func (g *Gummy) SaveGif(path string) error
- func (g *Gummy) SaveJpeg(path string) error
- func (g *Gummy) SavePng(path string) error
- func (g *Gummy) SetFont(path string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Gummy ¶
func NewDefaultGummy ¶
Color in HEX format: FAFAFA If hexColor = "" then random color
func (*Gummy) DrawTextSize ¶
Color in HEX format: FAFAFA If "" the color of the text is black or white depending on the brightness of the bg
Click to show internal directories.
Click to hide internal directories.