canvas

package
v0.0.0-...-2924a1e Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2022 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Canvas

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

func NewCanvas

func NewCanvas(c *z.Config, rooms z.IRooms, statuses z.IRing) *Canvas

func (*Canvas) Draw

func (c *Canvas) Draw(numHealths, numStrengths, numTreasures, totalTreasures int)

type Cell

type Cell struct {
	Pixels []*Pixel
}

func NewCell

func NewCell(capacity int) *Cell

type Pixel

type Pixel struct {
	Symbol rune
	Color  tb.Attribute
}

func NewPixel

func NewPixel() *Pixel

Jump to

Keyboard shortcuts

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