CanvasGradient

Holds both gradient data/table and positioning information.

You can create a gradient with createLinearGradient, createCircularGradient, or createEllipticalGradient, every frame. Then use addColorStop to set the color information.

The gradient data is managed by the Canvas object itself. All gradients are invalidated once initialize has been called.

Constructors

this
this()
Undocumented in source.

Members

Enums

Type
enum Type
Undocumented in source.

Functions

addColorStop
void addColorStop(float offset, RGBA color)

Adds a new color stop, defined by an offset and a color, to a given canvas gradient.

reset
void reset()
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

_gradient
Gradient _gradient;
r2
float r2;
Undocumented in source.
type
Type type;
Undocumented in source.
x0
float x0;
x1
float x1;
y0
float y0;
y1
float y1;
Undocumented in source.

Meta