Object Commands SECTION 6 Functions and Methods
51
The object 'ELLIPSE_1' is filled from the right, provided the point
'GAS_LEVEL' returns a valid result, between 0 and 100.
6-1-8 Move
Syntax
objectname.move (x co-ordinate, y co-ordinate)
Remarks
Typical Examples
move (100, 200)
The current object to which this example applies is moved to the specified
position.
POLYGON_1.move (xpos, ypos/5)
The object 'POLYGON_1' is moved to the position specified by points 'xpos'
and 'ypos' divided by 5.
6-1-9 Rotate
Syntax
objectname.rotate (angle, context, fixed, xcoord,
ycoord)
Remarks
Argument Description
objectname This is the name of the object. Where a script is directly
attached to an object, objectname is not required.
x co-ordinate
y co-ordinate
The x and y co-ordinates of the origin of the object at its
resultant position in pixels are specified in the form (x, y).
Points alone or as part of an arithmetic expression may
be used as a basis for this expression.
Argument Description
objectname This is the name of the object. Where a script is directly
attached to an object, objectname is not required.
angle The angle of rotation can range between 0 to 360 in a
clockwise direction. Points alone, or as part of an
arithmetic expression may be used as an angle.