RedMandelbrot:
Filter:
redUniverse/Classes (extension) | Red > redUniverse > additional

RedMandelbrot
ExtensionExtension

mandelbrot fractal

Description

Plotting a fractal with Image.

Class Methods

.new

Arguments:

width

Resolution in X dimension.

height

Resolution in Y dimension.

thresh

A threshold greater than 0 and lower than maxIterations.

maxIterations

The higher the value, the longer each pixel calculation will take.

Instance Methods

.at

Access without drawing.

.plot

Creates a Window and an Image. Also mainly for testing.

Arguments:

zoom

A Rect specifying zoom level. The default is Rect(-2.5, -1, 3.5, 2).

bounds

A Rect specifying the plot window size and position.

colorFunc

A Function for colourising pixels with an iteration count greater than the threshold. It is passed two Integer arguments (iterations and maxIterations) that should be used and return a Color instance. Leave as nil for the default.

background

A background Color for the Image. Visible with a threshold > 1.

interpolation

Can be \fast or \smooth.

Examples