sources

package
v0.9.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 7, 2022 License: GPL-3.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sources

type Sources struct {
	Footer string `fig:"footer" yaml:"footer" default:"sources/footer.png"`
	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) GetFooter

func (s Sources) GetFooter() (image.Image, error)

func (Sources) ListCovers

func (s Sources) ListCovers() ([]string, error)

func (Sources) ListFonts

func (s Sources) ListFonts() ([]string, error)

func (Sources) OpenRandomCover

func (s Sources) OpenRandomCover() (image.Image, error)

func (Sources) OpenRandomFont

func (s Sources) OpenRandomFont() (*truetype.Font, error)

func (Sources) RandomColor

func (s Sources) RandomColor() (color.Color, error)

func (Sources) RandomCover

func (s Sources) RandomCover() (string, error)

func (Sources) RandomFont

func (s Sources) RandomFont() (string, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL