Package jadex.micro.examples.mandelbrot
Interface IFractalAlgorithm
-
- All Known Implementing Classes:
LyapunovAlgorithm
,MandelbrotAlgorithm
public interface IFractalAlgorithm
Algorithm for calculating a fractal.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description short
determineColor(double x, double y, short max)
Determine the color of a point.AreaData
getDefaultSettings()
Get default settings for rendering the fractal.boolean
isOptimizationAllowed()
Can areas be filled?boolean
useColorCycle()
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?
-
-