Enumeration
Gradient.​Mode
public enum Mode
The Mode
is used to determine whether this is a linear
or radial
Gradient
.
NB: Gradient
coordinates are global and are not relative to the rendered
object's coordinates.
Relationships
Member Of
Gradient
A
Gradient
is used to create aFillStyle
for filling various objects.
Enumeration Cases
linear
case linear(start:Point, end:Point)
Creates a gradient along the line connecting the two given coordinates
radial
case radial(center1:Point, radius1:Double, center2:Point, radius2:Double)
Creates a radial gradient using the size and coordnates of two circles