Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Shader ¶
type Shader func(image.Image) ShaderOutput
Shader takes an initial screen state and returns a function that calculates the output for each screen cell at each time step.
type ShaderAnimation ¶
type ShaderAnimation struct {
// contains filtered or unexported fields
}
ShaderAnimation is a simple system for writing OpenGL-like "shaders".
func NewShaderAnimation ¶
func NewShaderAnimation(shader Shader) *ShaderAnimation
func (*ShaderAnimation) Init ¶
func (s *ShaderAnimation) Init(start image.Image)
Click to show internal directories.
Click to hide internal directories.