Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BurningShip ¶
func (BurningShip) Render ¶
func (fractal BurningShip) Render(items *FractalElements)
type Canvas ¶
type Canvas struct { Size Size Zoom float32 Center FloatPoint }
type FloatPoint ¶
type FloatPoint struct {
X, Y float32
}
type Fractal ¶
type Fractal interface {
Render(items *FractalElements)
}
type FractalElements ¶
type FractalElements struct {
Elements []Element
}
func NewFractalElements ¶
func NewFractalElements() *FractalElements
func (*FractalElements) Add ¶
func (f *FractalElements) Add(e Element)
type ImageFactory ¶
type ImageFactory struct {
Width, Height int
Picker cp.ColourPicker
WithCenter bool
}
func (ImageFactory) FromItems ¶
func (f ImageFactory) FromItems(items *FractalElements) *image.RGBA
type MandelbrotSet ¶
func (MandelbrotSet) Render ¶
func (fractal MandelbrotSet) Render(items *FractalElements)
Click to show internal directories.
Click to hide internal directories.