Package jadex.micro.mandelbrot.model
Class BurningShipFractalAlgorithm
java.lang.Object
jadex.micro.mandelbrot.model.AbstractFractalAlgorithm
jadex.micro.mandelbrot.model.BurningShipFractalAlgorithm
- 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.Methods inherited from class jadex.micro.mandelbrot.model.AbstractFractalAlgorithm
createAlgorithms, equals, getDefaultAlgorithm, hashCode, isDefault, isOptimizationAllowed, toString, useColorCycle
-
Constructor Details
-
BurningShipFractalAlgorithm
public BurningShipFractalAlgorithm()
-
-
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.
-