Documentation
¶
Index ¶
- Constants
- func Generate(m *Mandelbrot)
- func GetBounds(m *Mandelbrot) (float64, float64, float64, float64)
- func GetBuffer(m *Mandelbrot) [][]uint32
- func GetHistogram(m *Mandelbrot) []uint32
- func GetHue(m *Mandelbrot) [][]float64
- func GetMaxIterations(m *Mandelbrot) int
- func GetZoom(m *Mandelbrot) float64
- func InterpColors(colorA, colorB uint32, hue float64) (uint8, uint8, uint8)
- func MapFloatToFloat(v, aMin, aMax, bMin, bMax float64) float64
- func MapIntToFloat(v, intMin, intMax int, floatMin, floatMax float64) float64
- func MapIntToInt(v, aMin, aMax, bMin, bMax int) int
- func ScaleZoom(m *Mandelbrot, scale float64)
- func SetCenter(m *Mandelbrot, center complex128)
- func SetMaxIterations(m *Mandelbrot, i int)
- func SetZoom(m *Mandelbrot, z float64)
- type Mandelbrot
Constants ¶
View Source
const DefaultMaxIterations = 1000
View Source
const DefaultZoomLevel = 0.5
Variables ¶
This section is empty.
Functions ¶
func Generate ¶
func Generate(m *Mandelbrot)
func GetBounds ¶
func GetBounds(m *Mandelbrot) (float64, float64, float64, float64)
Return x min, y min, x max, x max of the current view
func GetBuffer ¶
func GetBuffer(m *Mandelbrot) [][]uint32
func GetHistogram ¶
func GetHistogram(m *Mandelbrot) []uint32
func GetHue ¶
func GetHue(m *Mandelbrot) [][]float64
func GetMaxIterations ¶
func GetMaxIterations(m *Mandelbrot) int
func GetZoom ¶
func GetZoom(m *Mandelbrot) float64
func MapFloatToFloat ¶
func MapIntToFloat ¶
func MapIntToInt ¶
func ScaleZoom ¶
func ScaleZoom(m *Mandelbrot, scale float64)
func SetCenter ¶
func SetCenter(m *Mandelbrot, center complex128)
func SetMaxIterations ¶
func SetMaxIterations(m *Mandelbrot, i int)
func SetZoom ¶
func SetZoom(m *Mandelbrot, z float64)
Types ¶
type Mandelbrot ¶
func Create ¶
func Create(width, height int, center complex128) *Mandelbrot
Click to show internal directories.
Click to hide internal directories.