theme

package
v0.0.0-...-4d2f849 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ThemeMap = map[ebiten.Key]Theme{
	ebiten.Key1: &BlackAndWhite{},
	ebiten.Key2: &CGA{},
	ebiten.Key3: &Earth{},
	ebiten.Key4: &Dune{},
}

Functions

This section is empty.

Types

type BlackAndWhite

type BlackAndWhite struct {
}

func (*BlackAndWhite) Colour

func (t *BlackAndWhite) Colour(cell *cell.Cell, age int) color.RGBA

type CGA

type CGA struct {
}

func (*CGA) Colour

func (t *CGA) Colour(cell *cell.Cell, age int) color.RGBA

type Dune

type Dune struct {
}

func (*Dune) Colour

func (t *Dune) Colour(cell *cell.Cell, age int) color.RGBA

type Earth

type Earth struct {
}

func (*Earth) Colour

func (t *Earth) Colour(cell *cell.Cell, age int) color.RGBA

type Theme

type Theme interface {
	Colour(cell *cell.Cell, age int) color.RGBA
}

Jump to

Keyboard shortcuts

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