SmartAXIS Touch User’s Manual 20-19
4 Script Definition Method
20
Script
Draw
*1
This is a function to draw an object on the screen. Top left corner of the screen is coordinates X=0 and Y=0.
When a device is used as an argument, an object is drawn with the changed value when the value is changed.
However, the object that is already drawn is not erased. To erase the drawn object, overwrite it with the background color.
When an out-of-range value is used as an argument, 5 is stored in the LSD53 and script is halted.
(Continued to next page)
Function Format Description
Drawing of
straight line
LINE( , , , ,
,,)
Straight line connecting the start coordinate and end coordinate is drawn.
: Start coordinate X, : Start coordinate Y, : End
coordinate X, : End coordinate Y, : Line width,
: Line type, : Line color
•
: Line width, : Line type, : Line color can be omitted.
• Specification of : Line width is as follows:
It will be set to 1 (1 dot) when omitted.
LINE( , , , )
• Specification of : Line type is as follows.
It will be set to 1 (Solid) when omitted or when the line width is
set to anything other than 1 (1 dot).
• : Line color is specified by the color data. It will be set to
255 (white) when omitted.
For color data, refer to Appendix “1 Color Number
Correspondence Table” on page A-1.
Drawing of
Rectangle
RECTANGLE( , , ,
, , ,
, , ,
, )
Rectangle with left top corner as start coordinate and bottom
right corner as end coordinate is drawn.
: Start coordinate X, : Start coordinate Y, : End
coordinate X, : End coordinate Y, : Line width, :
Line type, : Foreground color, : Background color, :
Pattern, : Rounded corner type, : Rounded corner radius
• : Line width, : Line type, : Foreground color,
: Background color, : Pattern, : Rounded
corner type, : Rounded corner radius can be omitted.
• Specification of : Line width is as follows:
It will be set to 1 (1 dot) when omitted.
• Specification of : Line type is as follows.
It will be set to 1 (Solid) when omitted or when the line width is
set to anything other than 1 (1 dot).
RECTANGLE( , , ,
)
• : Foreground color, : Background color is specified
by the color data. It will be set to 255 (white) when omitted.
For color data, refer to Appendix “1 Color Number
Correspondence Table” on page A-1.
• Specification of : Pattern is as follows.
It will be set to 0 (None) when omitted.
• Specification of : Rounded corner type is as follows.
It will be set to 0 (None) when omitted.
•:
Rounded corner radius is specified with number of dots (0 - 200).
It will be set to 0 (0 dot) when omitted.
Set value 1 2 3 5
Line width 1 dot 2 dots 3 dots 5 dots
Set value 1 2 3 4 5 6
Line type Solid Dot Dash
Long Dash
Long Dash
Dot
Long Dash
Dot Dot
Set value 1 2 3 5
Line width 1 dot 2 dots 3 dots 5 dots
Set value 1 2 3 4 5 6
Line type Solid Dot Dash
Long Dash
Long Dash
Dot
Long Dash
Dot Dot
Set
value
023478
Line
type
None
Foreground
100%
Foreground
25%
Foreground
50%
Background
100%
Horizontal
lines
Set
value
910111213
Line
type
Vertical
lines
Slant
Upwards
Slant
Down-wards
Cross-hatch
Tint
Set value 0 1 2
Line type None Straight Curve