Class JuliaSetAlgorithm

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

public class JuliaSetAlgorithm extends AbstractFractalAlgorithm
  • 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

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