Documentation ¶
Index ¶
- func DefaultColors() []string
- type ColorPallet
- type Colors
- type Sources
- func (s Sources) GetFooter() (image.Image, error)
- func (s Sources) ListCovers() ([]string, error)
- func (s Sources) ListFonts() ([]string, error)
- func (s Sources) OpenRandomCover() (image.Image, error)
- func (s Sources) OpenRandomFont() (*truetype.Font, error)
- func (s Sources) RandomColorPallet() ColorPallet
- func (s Sources) RandomCover() (string, error)
- func (s Sources) RandomFont() (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultColors ¶ added in v0.9.1
func DefaultColors() []string
Types ¶
type ColorPallet ¶ added in v0.9.1
type ColorPallet struct { // Base color, to be used as background Base color.Color // Text color, contract from base Text color.Color // Shadow color, complementary from base Shadow color.Color }
Color Pallet.
type Colors ¶ added in v0.9.1
type Colors []string
Colors collection.
func (Colors) RandomPallet ¶ added in v0.9.1
func (cl Colors) RandomPallet() ColorPallet
RandomPallet.
type Sources ¶
type Sources struct { Fonts string `fig:"fonts" yaml:"fonts" default:"sources/fonts"` Covers string `fig:"covers" yaml:"covers" default:"sources/covers"` Colors Colors `fig:"colors" yaml:"colors"` }
func (Sources) ListCovers ¶
func (Sources) RandomColorPallet ¶ added in v0.9.1
func (s Sources) RandomColorPallet() ColorPallet
func (Sources) RandomCover ¶
func (Sources) RandomFont ¶
Click to show internal directories.
Click to hide internal directories.