C# Class LibNoise.Gradient

Provides a color gradient.
Afficher le fichier Open project: simonwittber/LibNoise-Unity Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
Gradient ( ) : System

Initializes a new instance of Gradient.

Method Details

Clear() public méthode

Clears the gradient to transparent black.
public Clear ( ) : void
Résultat void

Gradient() public méthode

Initializes a new instance of Gradient.
public Gradient ( Color color ) : System
color Color
Résultat System

Gradient() public méthode

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

Invert() public méthode

Inverts the gradient.
public Invert ( ) : void
Résultat void

this() public méthode

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