Class NewtonFractalAlgorithm

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

public class NewtonFractalAlgorithm extends AbstractFractalAlgorithm
  • Field Details

  • Constructor Details

    • NewtonFractalAlgorithm

      public NewtonFractalAlgorithm()
  • Method Details

    • determineColor

      public short determineColor(double x, double y, short max)
      Description copied from interface: IFractalAlgorithm
      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 if the value is at the maximum.
    • getDefaultSettings

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