fillStyle
, fillColor1
, fillColor2
, fillStart
, fillEnd
, fillAngle
,
and fillTexture
.fillStyle
property specifies
the type of Paint object used to fill the shape. The possible values
are as listed: fillStyle : “SOLID_COLOR”; |
|
fillStyle : “LINEAR_GRADIENT”; |
|
fillStyle : “RADIAL_GRADIENT”; |
|
fillStyle : “TEXTURE”; |
|
fillColor1
and fillColor2
properties
specify the colors used:SOLID_COLOR
mode,
the shape is filled with fillColor1
.LINEAR_GRADIENT
and RADIAL_GRADIENT
modes,
the gradient starts with fillColor1
and
ends with fillColor2
: fillStyle : “LINEAR_GRADIENT”; fillColor1
: “blue”; fillColor2 : “red”; |
|
fillStyle : “RADIAL_GRADIENT”; fillColor1
: “blue”; fillColor2 : “red”; |
|
LINEAR_GRADIENT
and RADIAL_GRADIENT
modes,
the fillStart
, fillEnd
,
and fillAngle
properties define the geometry
of the gradient. A gradient is defined by two points called P1 and
P2. The following figures explain the meaning of the properties.fillColor1
to fillColor2
outside
the (P1, P2) segment.fillTexture
property specifies
the URL of an image file to use as a texture in TEXTURE
mode.