Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RandomNumber ¶
Types ¶
type BaseFlameGenerator ¶
type BaseFlameGenerator struct { Width int Height int Iterations int Transformations []Transformation Symmetry int Gamma float64 }
func (*BaseFlameGenerator) ProcessPoint ¶
func (fg *BaseFlameGenerator) ProcessPoint(point Point, transformations []Transformation, canvas *Canvas, world Rect)
type Canvas ¶
func (*Canvas) UpdatePixel ¶
func (c *Canvas) UpdatePixel(x, y int, transformation Transformation)
type FlameGeneratorInterface ¶
type FlameGeneratorInterface interface {
Generate(transformations []Transformation) *image.RGBA
}
type MultiFlameGenerator ¶
type MultiFlameGenerator struct { BaseFlameGenerator Workers int }
func NewMultiFlameGenerator ¶
func NewMultiFlameGenerator(cfg *config.Config, transformations []Transformation) *MultiFlameGenerator
func (*MultiFlameGenerator) Generate ¶
func (fg *MultiFlameGenerator) Generate(transformations []Transformation) *image.RGBA
type Rect ¶
func NewDefaultRect ¶
func NewDefaultRect() Rect
type SingleFlameGenerator ¶
type SingleFlameGenerator struct {
BaseFlameGenerator
}
func NewSingleFlameGenerator ¶
func NewSingleFlameGenerator(cfg *config.Config, transformations []Transformation) *SingleFlameGenerator
func (*SingleFlameGenerator) Generate ¶
func (fg *SingleFlameGenerator) Generate(transformations []Transformation) *image.RGBA
Click to show internal directories.
Click to hide internal directories.