Documentation ¶
Overview ¶
Package coloring contains utility functions useable when drawing any fractal.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Coloring ¶
Coloring contains information on how to color a fractal.
func NewColoring ¶
NewColoring pre-calculates gradients.
type Mode ¶
type Mode int
Mode determines the coloring method.
const ( // Modulo determines the coloring scheme based on the modulo of the iteration. Modulo Mode = iota // IterationCount determines the coloring scheme based on the length of the orbit. IterationCount // OrbitLength colors the orbit in a gradient from beginning to end. OrbitLength // VectorField colors the angles between the points in an orbit. VectorField // Path linearly interpolates between the points in the path. Path )
Click to show internal directories.
Click to hide internal directories.