Object Commands SECTION 6 Functions and Methods
52
Typical Examples
rotate (45)
The current object to which this example applies is rotated by 45 .
RECTANGLE_1.rotate(tilt, @USERDEFINED, 0, -100, 10)
The object 'RECTANGLE_1' is rotated by the value of 'tilt', about a point -100,
10 relative to the objects current position.
rotate (a * sin(b))
The current object is rotated based on the result of an arithmetic expression
involving points named 'a and 'b'.
6-1-10 Vertical Fill
Syntax
objectname.vertical%fill (expression, context)
Remarks
context This argument is not required and may be omitted. May
be one of:
@TOPLEFT - rotate around top left of object
@TOPCENTRE -rotate around top centre of object
@TOPRIGHT - rotate around top right of object
@CENTRELEFT - rotate around centre left of object
@CENTRE - rotate around centre of object
@CENTRERIGHT - rotate around centre right of object
@BOTTOMLEFT - rotate around bottom left of object
@BOTTEMCENTRE - rotate around bottom centre of
object
@ BOTTOMRIGHT - rotate around bottom right of object
@USERDEFINED - user defined point specified in
xcoord and ycoord.
fixed This argument may be omitted. If this boolean value is
true, the rotation origin is fixed to the screen, even if the
object is moved. Otherwise, the rotation origin is relative
to object position.
xcoord
ycoord
Only required if @USERDEFINED is specified. These
integer variables specify the rotation origin in pixels
Argument Description
Argument Description
objectname This is the name of the object. Where a script is directly
attached to an object, objectname is not required.
expression This is an arithmetic expression that must return a value
between 0 and 100. On return of a valid result, the fill
commences from bottom to top.
context This argument may be omitted. May be one of:
@DOWN - Fill object downwards
@UP - Fill object upwards
If omitted, @UP is assumed