User Guide
Chapter 3202
The following statement draws a dark red, 3-pixel unfilled oval within the image of member
Happy. The oval is drawn within the rectangle (0, 0, 128, 86).
member("Happy").image.draw(0, 0, 128, 86, [#shapeType:#oval, #lineSize:3, \
#color: rgb(150, 0, 0)])
See also
color(), copyPixels(), fill(), setPixel()
drawRect
Syntax
window windowName.drawRect
the drawRect of window windowName
Description
Window property; identifies the rectangular coordinates of the Stage of the movie that appears in the
window. The coordinates are given as a rectangle, with entries in the order left, top, right, and bottom.
This property is useful for scaling or panning movies, but it does not rescale text and field cast
members. Scaling bitmaps can affect performance.
This property can be tested and set.
Example
This statement displays the current coordinates of the movie window called Control Panel:
put the drawRect of window "Control Panel"
-- rect(10, 20, 200, 300).
The following statement sets the rectangle of the movie to the values of the rectangle named
movieRectangle. The part of the movie within the rectangle is what appears in the window.
set the drawRect of window "Control Panel" to movieRectangle
The following lines cause the Stage to fill the main monitor area:
(the stage).drawRect = the desktopRectList[1]
(the stage).rect = the desktopRectList[1]
See also
deskTopRectList, rect (camera), sourceRect
dropShadow
Syntax
member(whichCastMember).dropShadow
the dropShadow of member whichCastMember
Description
Cast member property; determines the size of the drop shadow in pixels, for text in a field
cast member.
Example
This statement sets the drop shadow of the field cast member Comment to 5 pixels:
member("Comment").dropShadow = 5