buddha

package
v0.0.0-...-414057b Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2020 License: Unlicense Imports: 8 Imported by: 0

Documentation

Overview

Package buddha provides functions for high performance parallel rendering of the buddhabrot fractal and it's complex cousins.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Attempt

func Attempt(z, c complex128, orbit *fractal.Orbit, frac *fractal.Fractal) int64

Attempt tries to find valid orbit from the points z and c and returns the length of the orbit inside the image space.

func FillHistograms

func FillHistograms(frac *fractal.Fractal, workers int) float64

FillHistograms creates a number of workers which finds orbits and stores their points in a histogram.

func IsLongOrbit

func IsLongOrbit(length int64, frac *fractal.Fractal) bool

IsLongOrbit returns true if the orbit is considered long.

length > max(20, threshold, iterations/1e4)

Types

This section is empty.

Jump to

Keyboard shortcuts

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