Package jadex.micro.mandelbrot.model
Class JuliaSetAlgorithm
java.lang.Object
jadex.micro.mandelbrot.model.AbstractFractalAlgorithm
jadex.micro.mandelbrot.model.JuliaSetAlgorithm
- All Implemented Interfaces:
IFractalAlgorithm
-
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
-
JuliaSetAlgorithm
public JuliaSetAlgorithm()
-
-
Method Details
-
determineColor
public short determineColor(double xn, double yn, short max) Description copied from interface:IFractalAlgorithm
Determine the color of a point.- Parameters:
xn
- The x coordinate.yn
- 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.
-
getDefaultSettings
Get default settings for rendering the fractal.
-