edu.turtlekit2.tools.fillers
Interface SolidNoiseGenerator

All Known Implementing Classes:
PerlinSolidNoiseGenerator

public interface SolidNoiseGenerator

Simple interface to a solid noise generator. Includes an interface to a routine which interprets the noise value at a point as a color.

Version:
1.0 - 6/2008
Author:
G. Beurier
See Also:
NoiseGenerator

Method Summary
 int background()
          Returns an (alpha, red, green, blue) color value associated with the background value in lieu of valid noise.
 int color(double x, double y, double z)
          Returns an (alpha, red, green, blue) color value associated with the value() at the specified point.
 void setScaling(double M, double W, double H)
          Sets internal variables required for a selected magnification, image width, and image height.
 double value(double x, double y, double z)
          Calculates an intensity value in [0.0,1.0] at the specified point.
 

Method Detail

setScaling

void setScaling(double M,
                double W,
                double H)
Sets internal variables required for a selected magnification, image width, and image height.


value

double value(double x,
             double y,
             double z)
Calculates an intensity value in [0.0,1.0] at the specified point.


color

int color(double x,
          double y,
          double z)
Returns an (alpha, red, green, blue) color value associated with the value() at the specified point.


background

int background()
Returns an (alpha, red, green, blue) color value associated with the background value in lieu of valid noise.