
235
The following statement draws a filled oval in the image object TestImage. The oval has a green
fill and a 5-pixel-wide red border.
TestImage.fill(0, 0, 100, 100, [#shapeType: #oval, #lineSize: 5, #color:
rgb(0, 255, 0), \
#bgColor: rgb(255, 0, 0)])
See also
color(), draw()
fillColor
Syntax
member(
whichCastMember
)
.
fillColor
Description
Vector shape cast member property; the color of the shape’s fill specified as an RGB value.
It’s possible to use
fillColor
when the
fillMode
property of the shape is set to
#solid
or
#gradient
, but not if it is set to
#none
. If the
fillMode
is
#gradient
,
fillColor
specifies the
starting color for the gradient. The ending color is specified with
endColor
.
This property can be tested and set.
To see an example of
fillColor
used in a completed movie, see the Vector Shapes movie in the
Learning/Lingo Examples folder inside the Director application folder.
Example
This statement sets the fill color of the member Archie to a new RGB value:
member("Archie").fillColor = rgb( 24, 15, 153)
See also
endColor
,
fillMode
fillCycles
Syntax
member(
whichCastMember
).fillCycles
Description
Vector shape cast member property; the number of fill cycles in a gradient vector shape’s fill, as
specified by an integer value from 1 to 7.
This property is valid only when the
fillMode
property of the shape is set to
#gradient
.
This property can be tested and set.
To see an example of
fillCycles
used in a completed movie, see the Vector Shapes movie in the
Learning/Lingo Examples folder inside the Director application folder.
Example
This statement sets the
fillCycles
of member Archie to 3:
member("Archie").fillCycles = 3
See also
endColor
,
fillColor
,
fillMode
Содержание DIRECTOR MX-LINGO DICTIONARY
Страница 1: ...Lingo Dictionary Macromedia Director MX...
Страница 756: ...Index 756...