Used to create and represent 2D gradients.
Public Member Functions | |
Gradient2D () | |
Gradient2D (int count) | |
void | Add (float at, Color colour) |
void | Add (float at, int r, int g, int b) |
void | Add (Color colour, float at) |
int | IndexOf (float at) |
RenderedGradient32 | Render32 (int pixelCount) |
Draws the gradient into a buffer of a fixed size. More... | |
RenderedGradient32 | Render32 (int pixelCount, bool reversed) |
Draws the gradient into a buffer of a fixed size. More... | |
RenderedGradient | Render (int pixelCount) |
Draws the gradient into a buffer of a fixed size. More... | |
RenderedGradient | Render (int pixelCount, bool reversed) |
Draws the gradient into a buffer of a fixed size. More... | |
Color | Render (float at) |
Public Attributes | |
int | Length =0 |
Color[] | Colours |
float[] | Positions |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Draws the gradient into a buffer of a fixed size.
|
inline |
Draws the gradient into a buffer of a fixed size.
|
inline |
|
inline |
Draws the gradient into a buffer of a fixed size.
|
inline |
Draws the gradient into a buffer of a fixed size.
Color [] Blaze.Gradient2D.Colours |
int Blaze.Gradient2D.Length =0 |
float [] Blaze.Gradient2D.Positions |