drawable

package
v0.0.0-...-bcaff50 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2026 License: MIT Imports: 5 Imported by: 0

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 DrawBase

func DrawBase(s tcell.Screen, x, y int)

TODO: add more flowerpot types and randomize it

func DrawFlower

func DrawFlower(s tcell.Screen, random *rand.Rand, x, y, d, t int)

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

Jump to

Keyboard shortcuts

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