package
Version:
v0.0.0-...-3c012e0
Opens a new window with list of versions in this module.
Published: Jan 22, 2017
License: Apache-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package algos groups functions used for calculating fractals
-
func Acos(r, i float64) (blue, red uint8)
-
func MandelbrotC128(r, i float64) (blue, red uint8)
-
func MandelbrotC64(r, i float64) (blue, red uint8)
-
func Newton(r, i float64) (uint8, uint8)
-
func Sqrt(r, i float64) (blue, red uint8)
-
type AlgoFunc
Acos calculates pixel values for arcus-cosinus fractal.
MandelbrotC128 calculates pixel values for Mandelbrot fractal using
complex128 type.
MandelbrotC64 calculates pixel values for Mandelbrot fractal using
complex64 type(at least tries to :) ).
Newton calculates pixel values for Newton's method of finding minimas.
f(x) = x^4 - 1
z' = z - f(z)/f'(z)
= z - (z^4 - 1) / (4 * z^3)
= z - (z - 1/z^3) / 4
Sqrt calculates pixel values for sqrt fractal.
AlgoFunc is the signature of the fuctions used for generating fractals
MapStr2Func converts string name of the fractal generator into a reference
of the function implementing it.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.