fractales

package
v0.0.0-...-a31fb98 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 22, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JuliaContinuousValueHigh

func JuliaContinuousValueHigh(z LargeComplex, maxiter int) (float64, bool)

JuliaContinuousValueHigh returns the fractional number of iterations corresponding to a complex in the Julia set in high precision

func JuliaContinuousValueLow

func JuliaContinuousValueLow(z complex128, maxiter int) (float64, bool)

JuliaContinuousValueLow returns the fractional number of iterations corresponding to a complex in the Julia set in low precision

func JuliaOrbitValueLow

func JuliaOrbitValueLow(z complex128, maxiter int, orbits []params.Orbit) (float64, bool)

JuliaOrbitValueLow returns the distance to the closest orbit hit by the computation of iterations corresponding to a complex in the Julia set in low precision

func MandelbrotContinuousValueHigh

func MandelbrotContinuousValueHigh(c *LargeComplex, maxiter int) (float64, bool)

MandelbrotContinuousValueHigh returns the number of iterations corresponding to a complex in the Mandelbrot set with high precision input

func MandelbrotContinuousValueLow

func MandelbrotContinuousValueLow(c complex128, maxiter int) (float64, bool)

MandelbrotContinuousValueLow returns the fractional number of iterations corresponding to a complex in the Mandelbrot set with low precision input

func MandelbrotOrbitValueLow

func MandelbrotOrbitValueLow(c complex128, maxiter int, orbits []params.Orbit) (float64, bool)

MandelbrotOrbitValueLow returns the distance to the closest orbit hit by the computation of iterations corresponding to a complex in the Mandelbrot set in low precision

func MultibrotContinuousValueLow

func MultibrotContinuousValueLow(c complex128, maxiter int, power complex128) (float64, bool)

MultibrotContinuousValueLow returns the number of iterations corresponding to a complex in the Multibrot set (with d > 2)

Types

type Computation

type Computation func(x int, ymin int, ymax int, img *image.RGBA64, wg *sync.WaitGroup)

Computation fills in image pixels according to parameters

func CreateComputer

func CreateComputer(computeValue ValueComputation, colorPixel palettes.ColoringFunction, params params.ImageParams) Computation

func CreateFlameComputer

func CreateFlameComputer(params params.ImageParams) Computation

type LargeComplex

type LargeComplex struct {
	// contains filtered or unexported fields
}

func (LargeComplex) Abs64

func (z LargeComplex) Abs64() float64

func (LargeComplex) Add

func (LargeComplex) Square

func (z LargeComplex) Square() LargeComplex

type ValueComputation

type ValueComputation func(x int, y int) (float64, bool)

ValueComputation is a value computation function

func FernValueComputeLow

func FernValueComputeLow(params params.ImageParams) ValueComputation

func JuliaContinuousValueComputerHigh

func JuliaContinuousValueComputerHigh(params params.ImageParams) ValueComputation

JuliaContinuousValueComputerHigh returns a ValueComputation for the julia set with high precision input

func JuliaContinuousValueComputerLow

func JuliaContinuousValueComputerLow(params params.ImageParams) ValueComputation

JuliaContinuousValueComputerLow returns a ValueComputation for the julia set with low precision input

func JuliaOrbitValueComputerLow

func JuliaOrbitValueComputerLow(params params.ImageParams, orbits []params.Orbit) ValueComputation

JuliaOrbitValueComputerLow returns a ValueComputation for the julia set with orbit trapping

func MandelbrotContinuousValueComputerHigh

func MandelbrotContinuousValueComputerHigh(params params.ImageParams) ValueComputation

MandelbrotContinuousValueComputerHigh returns a ValueComputation for the mandelbrot set with high precision input

func MandelbrotContinuousValueComputerLow

func MandelbrotContinuousValueComputerLow(params params.ImageParams) ValueComputation

MandelbrotContinuousValueComputerLow returns a ValueComputation for the mandelbrot set with low precision input

func MandelbrotOrbitValueComputerLow

func MandelbrotOrbitValueComputerLow(params params.ImageParams, orbits []params.Orbit) ValueComputation

MandelbrotOrbitValueComputerLow returns a ValueComputation for the julia set with orbit trapping

func MultibrotContinuousValueComputerLow

func MultibrotContinuousValueComputerLow(params params.ImageParams) ValueComputation

MultibrotContinuousValueComputerLow returns a ValueComputation for the Multibrot set

func SierpValueComputeLow

func SierpValueComputeLow(params params.ImageParams) ValueComputation

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL