Blaze.Gradient2D Class Reference

Detailed Description

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
 

Constructor & Destructor Documentation

Blaze.Gradient2D.Gradient2D ( )
inline
Blaze.Gradient2D.Gradient2D ( int  count)
inline

Member Function Documentation

void Blaze.Gradient2D.Add ( float  at,
Color  colour 
)
inline
void Blaze.Gradient2D.Add ( float  at,
int  r,
int  g,
int  b 
)
inline
void Blaze.Gradient2D.Add ( Color  colour,
float  at 
)
inline
int Blaze.Gradient2D.IndexOf ( float  at)
inline
RenderedGradient Blaze.Gradient2D.Render ( int  pixelCount)
inline

Draws the gradient into a buffer of a fixed size.

RenderedGradient Blaze.Gradient2D.Render ( int  pixelCount,
bool  reversed 
)
inline

Draws the gradient into a buffer of a fixed size.

Color Blaze.Gradient2D.Render ( float  at)
inline
RenderedGradient32 Blaze.Gradient2D.Render32 ( int  pixelCount)
inline

Draws the gradient into a buffer of a fixed size.

RenderedGradient32 Blaze.Gradient2D.Render32 ( int  pixelCount,
bool  reversed 
)
inline

Draws the gradient into a buffer of a fixed size.

Member Data Documentation

Color [] Blaze.Gradient2D.Colours
int Blaze.Gradient2D.Length =0
float [] Blaze.Gradient2D.Positions