Documentation ¶
Overview ¶
An implementation of Conway's Game of Life.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Animation ¶
type Animation struct {
// contains filtered or unexported fields
}
func NewAnimation ¶
type Field ¶
type Field struct {
// contains filtered or unexported fields
}
Field represents a two-dimensional field of cells.
func (*Field) ColorModel ¶
ColorModel returns the canvas' color model, always color.RGBAModel
func (*Field) Get ¶
Get returns the specified cell. If the x or y coordinates are outside the field boundaries they are wrapped toroidally. For instance, an x value of -1 is treated as width-1.
Click to show internal directories.
Click to hide internal directories.