Class LyapunovAlgorithm

java.lang.Object
jadex.micro.mandelbrot.model.AbstractFractalAlgorithm
jadex.micro.mandelbrot.model.LyapunovAlgorithm
All Implemented Interfaces:
IFractalAlgorithm

public class LyapunovAlgorithm extends AbstractFractalAlgorithm
Algorithm for calculating Lyapunov fractals.
  • Field Details

  • Constructor Details

    • LyapunovAlgorithm

      public LyapunovAlgorithm()
  • Method Details

    • determineColor

      public short determineColor(double a, double b, short max)
      Determine the color of a point.
      Parameters:
      a - The x coordinate.
      b - The y coordinate.
      max - The maximum depth.
      x - The x coordinate.
      y - The y coordinate.
      Returns:
      A value for the point from 0 to max-1 or -1 for max.
    • getDefaultSettings

      public AreaData getDefaultSettings()
      Get default settings for rendering the fractal.
    • useColorCycle

      public boolean useColorCycle()
      Should a cyclic color scheme be used?
      Specified by:
      useColorCycle in interface IFractalAlgorithm
      Overrides:
      useColorCycle in class AbstractFractalAlgorithm
    • isOptimizationAllowed

      public boolean isOptimizationAllowed()
      Can areas be filled?
      Specified by:
      isOptimizationAllowed in interface IFractalAlgorithm
      Overrides:
      isOptimizationAllowed in class AbstractFractalAlgorithm