![JAR search and dependency download from the Maven repository](/logo.png)
jadex.micro.mandelbrot.model.IFractalAlgorithm Maven / Gradle / Ivy
The newest version!
package jadex.micro.mandelbrot.model;
/**
* Algorithm for calculating a fractal.
*/
public interface IFractalAlgorithm
{
/**
* Determine the color of a point.
* @param x The x coordinate.
* @param y The y coordinate.
* @param max The maximum depth.
* @return A value for the point from 0 to max-1
* or -1 if the value is at the maximum.
*/
public short determineColor(double x, double y, short max);
/**
* Can areas be filled?
*/
public boolean isOptimizationAllowed();
/**
* Get default settings for rendering the fractal.
*/
public AreaData getDefaultSettings();
/**
* Should a cyclic color scheme be used?
*/
public boolean useColorCycle();
/**
* The default algorithm.
*/
public boolean isDefault();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy