Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Flowers = map[string]int{
"daisy": 0,
"rose": 1,
"sunflower": 2,
"lavender": 3,
"poppy": 4,
"hibiscus": 5,
"bluet": 6,
}
View Source
var TotalFlowers = len(Flowers)
Functions ¶
func DrawFlower ¶
DrawFlower draws a flower where:
- s is the screen
- random is the random number generator
- x,y -> x,y-1 is where the stem ends
- d is the dimension/size (optional for some flowers)
- t is the type of flower :3
func InitColors ¶
func InitColors(trueColor bool)
Types ¶
type ColorScheme ¶
type ColorScheme struct {
White, Red, Blue, Green, Yellow, Violet, Brown tcell.Style
LightBlue, DarkGreen, Pale tcell.Style
}
func GetColors ¶
func GetColors() *ColorScheme
Click to show internal directories.
Click to hide internal directories.