C# Class YAMP.Numerics.Fractal

Represents the abstract base class for Fractals.
Mostrar archivo Open project: FlorianRappl/YAMP

Public Methods

Method Description
B ( double color ) : int

Gets the blue part of the color (0-255) for the given value.

CalculateMatrix ( double xi, double xf, double yi, double yf, int xsteps, int ysteps ) : MatrixValue

Calculates the matrix with all the fractal values.

Fractal ( int maxIterations, int colors ) : System

Creates a new instance.

G ( double color ) : int

Gets the green part of the color (0-255) for the given value.

R ( double color ) : int

Gets the red part of the color (0-255) for the given value.

Run ( double x, double y ) : double

Calculates a single value.

Method Details

B() public method

Gets the blue part of the color (0-255) for the given value.
public B ( double color ) : int
color double A value for the color (0...1)
return int

CalculateMatrix() public method

Calculates the matrix with all the fractal values.
public CalculateMatrix ( double xi, double xf, double yi, double yf, int xsteps, int ysteps ) : MatrixValue
xi double The initial (start) x.
xf double The final (end) x.
yi double The initial (start) y.
yf double The final (end) y.
xsteps int The number of steps in x direction.
ysteps int The number of steps in y direction.
return YAMP.MatrixValue

Fractal() public method

Creates a new instance.
public Fractal ( int maxIterations, int colors ) : System
maxIterations int The maximum number of iterations.
colors int The number of colors to use.
return System

G() public method

Gets the green part of the color (0-255) for the given value.
public G ( double color ) : int
color double A value for the color (0...1)
return int

R() public method

Gets the red part of the color (0-255) for the given value.
public R ( double color ) : int
color double A value for the color (0...1)
return int

Run() public abstract method

Calculates a single value.
public abstract Run ( double x, double y ) : double
x double The x value.
y double The y value.
return double