plopper

package
v0.0.0-...-ac787cf Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PlopWord

type PlopWord struct {
	Column int
	Row    int
	Word   string
	Colors [3]int
	Life   int
	Max    int
	Intro  int
}

func NewWord

func NewWord(pl pile.WordPile, colorName string) PlopWord

func (PlopWord) GetColor

func (word PlopWord) GetColor() int

func (PlopWord) InRGB

func (word PlopWord) InRGB(what string) string

func (PlopWord) Render

func (word PlopWord) Render() string

func (*PlopWord) Tick

func (word *PlopWord) Tick() bool

type Plopper

type Plopper struct {
	// contains filtered or unexported fields
}

func New

func New(pile pile.WordPile, colorName string) Plopper

func (*Plopper) Add

func (pl *Plopper) Add(word ...PlopWord)

func (*Plopper) Clear

func (pl *Plopper) Clear()

func (*Plopper) Draw

func (pl *Plopper) Draw()

func (*Plopper) IsActive

func (pl *Plopper) IsActive() bool

func (*Plopper) Render

func (pl *Plopper) Render() string

func (*Plopper) Resize

func (pl *Plopper) Resize(size tsize.Size)

func (*Plopper) SetActive

func (pl *Plopper) SetActive(active bool)

func (*Plopper) SetColorName

func (pl *Plopper) SetColorName(colorName string)

func (*Plopper) ToggleActive

func (pl *Plopper) ToggleActive()

func (*Plopper) ToggleTimeDrawing

func (pl *Plopper) ToggleTimeDrawing()

func (*Plopper) Update

func (pl *Plopper) Update()

type RGBValue

type RGBValue [3]int

func GetColorByName

func GetColorByName(name string) RGBValue

Jump to

Keyboard shortcuts

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