Package jadex.micro.mandelbrot.model
Class LyapunovAlgorithm
java.lang.Object
jadex.micro.mandelbrot.model.AbstractFractalAlgorithm
jadex.micro.mandelbrot.model.LyapunovAlgorithm
- All Implemented Interfaces:
IFractalAlgorithm
Algorithm for calculating Lyapunov fractals.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionshortdetermineColor(double a, double b, short max) Determine the color of a point.Get default settings for rendering the fractal.booleanCan areas be filled?booleanShould a cyclic color scheme be used?Methods inherited from class jadex.micro.mandelbrot.model.AbstractFractalAlgorithm
createAlgorithms, equals, getDefaultAlgorithm, hashCode, isDefault, toString
-
Field Details
-
GENERATOR
Generator string (any combination of As and Bs).- See Also:
-
-
Constructor Details
-
LyapunovAlgorithm
public LyapunovAlgorithm()
-
-
Method Details
-
determineColor
public short determineColor(double a, double b, 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 for max.
-
getDefaultSettings
Get default settings for rendering the fractal. -
useColorCycle
public boolean useColorCycle()Should a cyclic color scheme be used?- Specified by:
useColorCyclein interfaceIFractalAlgorithm- Overrides:
useColorCyclein classAbstractFractalAlgorithm
-
isOptimizationAllowed
public boolean isOptimizationAllowed()Can areas be filled?- Specified by:
isOptimizationAllowedin interfaceIFractalAlgorithm- Overrides:
isOptimizationAllowedin classAbstractFractalAlgorithm
-