Documentation ¶
Index ¶
- 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) RandomColor() (color.Color, error)
- func (s Sources) RandomCover() (string, error)
- func (s Sources) RandomFont() (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Sources ¶
type Sources struct { Fonts string `fig:"fonts" yaml:"fonts" default:"sources/fonts"` Covers string `fig:"covers" yaml:"covers" default:"sources/covers"` // https://colors.muz.li/palette/976f4e/4e7197/374f6a/978a4e/6a6137 // https://colors.muz.li/palette/24180f/0f1c24/0a1419/24200f/19160a //nolint:lll Colors []string `` /* 126-byte string literal not displayed */ }
func (Sources) ListCovers ¶
func (Sources) RandomCover ¶
func (Sources) RandomFont ¶
Click to show internal directories.
Click to hide internal directories.