Package jadex.micro.mandelbrot.model
Class MandelbrotAlgorithm
java.lang.Object
jadex.micro.mandelbrot.model.AbstractFractalAlgorithm
jadex.micro.mandelbrot.model.MandelbrotAlgorithm
- All Implemented Interfaces:
IFractalAlgorithm
Algorithm for calculating the mandelbrot set.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionshort
determineColor
(double xn, double yn, short max) Determine the color of a point.Get default settings for rendering the fractal.boolean
The default algorithm.Methods inherited from class jadex.micro.mandelbrot.model.AbstractFractalAlgorithm
createAlgorithms, equals, getDefaultAlgorithm, hashCode, isOptimizationAllowed, toString, useColorCycle
-
Constructor Details
-
MandelbrotAlgorithm
public MandelbrotAlgorithm()
-
-
Method Details
-
determineColor
public short determineColor(double xn, double yn, short max) Determine the color of a point.- Parameters:
xn
- The x coordinate.yn
- The y coordinate.max
- The maximum depth.x
- The x coordinate.y
- The y coordinate.- Returns:
- A value for the point from 0 to max.
-
getDefaultSettings
Get default settings for rendering the fractal. -
isDefault
public boolean isDefault()The default algorithm.- Specified by:
isDefault
in interfaceIFractalAlgorithm
- Overrides:
isDefault
in classAbstractFractalAlgorithm
-