Vertical Fill - Omron CX-Supervisor Reference Manual

Script language reference
Hide thumbs Also See for CX-Supervisor:
Table of Contents

Advertisement

Object Commands

6-1-10 Vertical Fill

52
Argument
Description
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
Only required if @USERDEFINED is specified. These
ycoord
integer variables specify the rotation origin in pixels
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'.
Syntax
objectname.vertical%fill (expression, context)
Remarks
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
SECTION 6 Functions and Methods

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cx-supervisor 3.1

Table of Contents