Documentation
¶
Index ¶
- type Tincture
- func All() []Tincture
- func ByTag(tinctures []Tincture, tag string) []Tincture
- func Complementary(t Tincture, includeFurs bool) []Tincture
- func Contrasting(t Tincture, includeFurs bool) []Tincture
- func ExcludeTag(tinctures []Tincture, tag string) []Tincture
- func Random(tinctures []Tincture) (Tincture, error)
- func RandomAll() (Tincture, error)
- func RandomByTag(tag string) (Tincture, error)
- func RandomComplementary(t Tincture, includeFurs bool) (Tincture, error)
- func RandomContrasting(t Tincture, includeFurs bool) (Tincture, error)
- func RandomWeighted(tinctures []Tincture) (Tincture, error)
- func Remove(tincture Tincture, tinctures []Tincture) []Tincture
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Tincture ¶
type Tincture struct { Type string Name string Color color.RGBA PatternFileName string Tags []string Commonality int }
Tincture is a tincture
func Complementary ¶
Complementary returns all tinctures that complement the given one
func Contrasting ¶
Contrasting returns all tinctures that contrast the given one
func ExcludeTag ¶
ExcludeTag returns all tinctures that don't have the specified tag
func RandomByTag ¶
RandomByTag returns a random tincture that has the specified tag
func RandomComplementary ¶
RandomComplementary returns a random tincture that contrasts with the given one
func RandomContrasting ¶
RandomContrasting returns a random tincture that contrasts with the given one
func RandomWeighted ¶
RandomWeighted returns a random tincture based on its commonality from the specified set
Click to show internal directories.
Click to hide internal directories.