User Guide
style 1021
strokeWidth
Usage
-- Lingo syntax
memberObjRef.strokeWidth
// JavaScript syntax
memberObjRef.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:
-- Lingo syntax
member("line").strokeWidth = 10
// JavaScript syntax
member("line").strokeWidth = 10;
style
Usage
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