Packagede.popforge.imageprocessing.filters.render
Classpublic final class Mandelbrot
ImplementsIFilter

The Mandelbrot class is a filter that renders a Mandelbrot fractal. The filter will always use a maximum number of 256 iterations and scale the color based on the maximum iteration. The Mandelbrot will also be stretched to fit into the size of the image.

Supported formats:


Example
  
  var filter: Mandelbrot = new Mandelbrot( 10, 16, 20 );
  
  var image: Image = new Image( 160, 120, ImageFormat.RGB );
  
  filter.apply( image );
  



Public Methods
 MethodDefined by
  
Mandelbrot(r:Number = 1, g:Number = 1, b:Number = 1)
Creates a new Mandelbrot object.
Mandelbrot
  
apply(image:Image):void
Applies the filter to the given Image object.
Mandelbrot
  
toString():String
Builds and returns a string containing the name of the class.
Mandelbrot
Constructor detail
Mandelbrot()constructor
public function Mandelbrot(r:Number = 1, g:Number = 1, b:Number = 1)

Creates a new Mandelbrot object.

Parameters
r:Number (default = 1) — Multiplier for red color channel.
 
g:Number (default = 1) — Multiplier for green color channel.
 
b:Number (default = 1) — Multiplier for blue color channel.
Method detail
apply()method
public function apply(image:Image):void

Applies the filter to the given Image object.

Parameters
image:Image — The image that will be manipulated.
toString()method 
public function toString():String

Builds and returns a string containing the name of the class.

Returns
String — A string containing the name of the class.