Chunks
Moddable voxel sandbox for room-scale VR.
Public Member Functions | Static Public Member Functions | Properties | List of all members
LibNoise.Gradient Struct Reference

Provides a color gradient. More...

Public Member Functions

 Gradient (Color color)
 Initializes a new instance of Gradient. More...
 
 Gradient (Color start, Color end)
 Initializes a new instance of Gradient. More...
 
void Clear ()
 Clears the gradient to transparent black. More...
 
void Invert ()
 Inverts the gradient. More...
 

Static Public Member Functions

static Gradient ()
 Initializes a new instance of Gradient. More...
 

Properties

Color this[double position] [get, set]
 Gets or sets a gradient step by its position. More...
 
bool IsInverted [get, set]
 Gets or sets a value whether the gradient is inverted. More...
 
static Gradient Empty [get]
 Gets the empty instance of Gradient. More...
 
static Gradient Grayscale [get]
 Gets the grayscale instance of Gradient. More...
 
static Gradient Terrain [get]
 Gets the terrain instance of Gradient. More...
 

Detailed Description

Provides a color gradient.

Constructor & Destructor Documentation

static LibNoise.Gradient.Gradient ( )
static

Initializes a new instance of Gradient.

LibNoise.Gradient.Gradient ( Color  color)

Initializes a new instance of Gradient.

LibNoise.Gradient.Gradient ( Color  start,
Color  end 
)

Initializes a new instance of Gradient.

Member Function Documentation

void LibNoise.Gradient.Clear ( )

Clears the gradient to transparent black.

void LibNoise.Gradient.Invert ( )

Inverts the gradient.

Property Documentation

Gradient LibNoise.Gradient.Empty
staticget

Gets the empty instance of Gradient.

Gradient LibNoise.Gradient.Grayscale
staticget

Gets the grayscale instance of Gradient.

bool LibNoise.Gradient.IsInverted
getset

Gets or sets a value whether the gradient is inverted.

Gradient LibNoise.Gradient.Terrain
staticget

Gets the terrain instance of Gradient.

Color LibNoise.Gradient.this[double position]
getset

Gets or sets a gradient step by its position.

Parameters
positionThe position of the gradient step.
Returns
The corresponding color value.

The documentation for this struct was generated from the following file: