643
Example
This sets the strokeColor of cast member "line" to red:
member("line").strokeColor = rgb(255, 0, 0)
See also
color()
,
fillColor
,
endColor
,
backgroundColor
strokeWidth
Syntax
member(
whichCastMember
).strokeWidth
Description
Vector shape cast member property; indicates the width, in pixels, of the shape’s framing stroke.
The value is a floating-point number between 0 and 100 and can be tested and set.
To see an example of
strokeWidth
used in a completed movie, see the Vector Shapes movie in the
Learning/Lingo Examples folder inside the Director application folder.
Example
The following code sets the
strokeWidth
of cast member “line” to 10 pixels:
member("line").strokeWidth = 10
style
Syntax
member(
whichCastmember
).model(
whichModel
).toon.style
member(
whichCastmember
).model(
whichModel
).shader.style
member(
whichCastmember
).shader(
whichShader
).style
Description
3D
toon
modifier and
painter
shader property; indicates the way the
toon
modifier and
painter
shader apply color to a model. Possible values are as follows:
•
#toon
uses sharp transitions between colors.
•
#gradient
uses smooth transitions between colors. This is the default value.
•
#blackAndWhite
uses two-color black and white.
The number of colors used by the
toon
modifier and
painter
shader is set with the
colorSteps
property of the modifier or shader.
Example
The following statement sets the
style
property of the
toon
modifier for the model named Teapot
to
#blackAndWhite
. The model will be rendered in two-color black and white.
member("Shapes").model("Teapot").toon.style = #blackAndWhite
Summary of Contents for DIRECTOR MX-LINGO DICTIONARY
Page 1: ...Lingo Dictionary Macromedia Director MX...
Page 756: ...Index 756...