Documentation ¶
Index ¶
Constants ¶
View Source
const (
DefaultCompression = 1
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Markov ¶
type Markov interface { // GetNextColor returns a randomly selected tranistion color for the given // color. GetNextColor(c color.Color) color.Color // GetRandomColor returns a randomly selected color from the model. GetRandomColor() color.Color // AddColorTransition adds a color transition, c2, for the given color, c1, // to the model. AddColorTransition(c1 color.Color, c2 color.Color) // Generate returns a new image generated from the current model. Generate() *image.RGBA // ReadFile reads the given image file and sets the model accordingly. ReadFile(filename string) error // WriteFile generates a new image based on the current model and writes // it to the given file path. WriteFile(filename string) error }
Markov is an interface to a markov model of an image
Click to show internal directories.
Click to hide internal directories.