Gradient filled texture.
    public class GradientTexture : Texture

Uses a Gradient to fill the texture data, the gradient will be filled from left to right using colors obtained from the gradient, this means that the texture does not necessarily represent an exact copy of the gradient, but instead an interpolation of samples obtained from the gradient at fixed steps (see SetWidth(int)).

Inheritance Chain

Constructors

    public GradientTexture()

Properties

    public Gradient Gradient { get; set; }

The Gradient that will be used to fill the texture.

    public int Width { get; set; }

The number of color samples that will be obtained from the Gradient.

Methods

    public Gradient GetGradient()

Getter for Gradient

    public void SetGradient(Gradient gradient)

Setter for Gradient

    public void SetWidth(int width)

Setter for Width

Tags: