 |
To specify the color of a shape's strokes, use the strokeColor property. |
|
This statement sets the color of a shape cast member's strokes to red: |
|
member(1).strokeColor = rgb(255, 0, 0)
|
 |
Use the strokeWidth property to specify the thickness in pixels of a shape's strokes. The value can be a floating-point number. |
|
This statement sets the thickness of a shape's strokes to 2.5 pixels: |
|
member(1).strokeWidth = 2.5
|
 |
Use the antiAlias property to determine whether the edges of the shape are blended with the Stage background. Setting this property to TRUE makes the shape's edges appear smoother. |
|
This statement turns on anti-aliasing for the shape cast member Pond: |
|
member("Pond").antiAlias = 1
|
 |
To close or open a shape with Lingo, set the shape's closed property. |
|
This statement sets the shape cast member Pond to be open: |
|
member("Pond").closed = 0
|
 |
A shape's fillMode property determines whether the shape has a fill and whether that fill is a solid color or a gradient. Set the fillMode to #none to make the shape appear with only its default background color and no other fill. Set the fillMode to #solid to make the shape appear with a solid-color fill, which you specify with the fillColor property. Set the fillMode to #gradient to fill the shape with a color gradient that begins with the fillColor and ends with the endColor . |
|
These statements set the fill of the cast member Pond to a gradient that starts with green and ends with blue: |
|
member("Pond").fillMode = #gradient
member("Pond").fillColor = rgb(0, 255, 0)
member("Pond").endColor = rgb(0, 0, 255)
|
 |
When a gradient is specified, use the gradientType , fillOffset , and fillDirection properties to define how the gradient appears. |
|
Use the gradientType property to specify a #linear or a #radial gradient. |
|
Use the fillOffset property to specify the location where the gradient originates. The default for linear gradients is the edge of the shape. The default for radial gradients is the center of the shape. The fillOffset property takes a point value that indicates how much to move the starting location of the gradient from its default. |
|
This statement moves the starting point of the gradient of member one 20 pixels to the right: |
|
member(1).fillOffset = point(20, 0)
|
|
The default direction of linear fills is from left to right. You can change the direction of a fill by rotating it with the fillDirection property. By rotating the fill clockwise 90°, you can change it to move from top to bottom. |
|
This statement sets the fill of member 1 to move from right to left: |
|
member(1).fillDirection = 180
|
|
Use the fillScale property to specify how spread-out the gradient appears. The value is a percentage of the size of the shape cast member itself. A small fillScale value makes the gradient occur over a short distance. A larger value spreads the gradient over a larger distance. |
|
This statement sets the linear gradient fill of member 1 to be spread over half the width of the member: |
|
|