C# Class LibNoise.Gradient

Provides a color gradient.
Mostra file Open project: simonwittber/LibNoise-Unity Class Usage Examples

Public Methods

Method Description
Clear ( ) : void

Clears the gradient to transparent black.

Gradient ( Color color ) : System

Initializes a new instance of Gradient.

Gradient ( Color start, Color end ) : System

Initializes a new instance of Gradient.

Invert ( ) : void

Inverts the gradient.

this ( float position ) : Color

Gets or sets a gradient step by its position.

Private Methods

Method Description
Gradient ( ) : System

Initializes a new instance of Gradient.

Method Details

Clear() public method

Clears the gradient to transparent black.
public Clear ( ) : void
return void

Gradient() public method

Initializes a new instance of Gradient.
public Gradient ( Color color ) : System
color Color
return System

Gradient() public method

Initializes a new instance of Gradient.
public Gradient ( Color start, Color end ) : System
start Color
end Color
return System

Invert() public method

Inverts the gradient.
public Invert ( ) : void
return void

this() public method

Gets or sets a gradient step by its position.
public this ( float position ) : Color
position float The position of the gradient step.
return Color