layer

package
v0.0.0-...-50a2a80 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2024 License: GPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Blues = []tcell.Style{
	tcell.StyleDefault.Dim(true).Bold(true).Foreground(tcell.ColorLightCyan),
	tcell.StyleDefault.Dim(true).Bold(true).Foreground(tcell.ColorLightBlue),
	tcell.StyleDefault.Dim(true).Bold(true).Foreground(tcell.ColorLightSkyBlue),
	tcell.StyleDefault.Dim(true).Bold(true).Foreground(tcell.ColorLightSteelBlue),
}

Functions

func FindHidden

func FindHidden(layers []*Layer) []int

Types

type Layer

type Layer struct {
	X    int
	Y    int
	Velo int

	Asset      assets.Asset
	AssetIndex int
	// NOTE: that the drawFunc doesnt actual.Y update the screen
	// it just computes the next l.Yer. Its up to the renderer to sync
	// the changes to the screen. This effectively allows for double buffering.
	Draw func(l *Layer, sc tcell.Screen)
	// contains filtered or unexported fields
}

func NewRandBubble

func NewRandBubble(w int, h int) *Layer

func NewRandFish

func NewRandFish(w int, h int) *Layer

func (Layer) String

func (l Layer) String() string

Jump to

Keyboard shortcuts

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