Package jadex.micro.examples.mandelbrot
Interface IFractalAlgorithm
-
- All Known Implementing Classes:
LyapunovAlgorithm,MandelbrotAlgorithm
public interface IFractalAlgorithmAlgorithm for calculating a fractal.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description shortdetermineColor(double x, double y, short max)Determine the color of a point.AreaDatagetDefaultSettings()Get default settings for rendering the fractal.booleanisOptimizationAllowed()Can areas be filled?booleanuseColorCycle()Should a cyclic color scheme be used?
-
-
-
Method Detail
-
determineColor
short determineColor(double x, double y, short max)Determine the color of a point.- Parameters:
x- The x coordinate.y- The y coordinate.max- The maximum depth.- Returns:
- A value for the point from 0 to max-1 or -1 if the value is at the maximum.
-
isOptimizationAllowed
boolean isOptimizationAllowed()
Can areas be filled?
-
getDefaultSettings
AreaData getDefaultSettings()
Get default settings for rendering the fractal.
-
useColorCycle
boolean useColorCycle()
Should a cyclic color scheme be used?
-
-