CipherLab BASIC Programming
CIRCLE
Purpose
To draw a circle on the LCD.
Syntax
CIRCLE(cx%, cy%, r%, type%, mode%)
Remarks
"cx%", "cy%" are integer variables, indicating the x, y coordinates of the
center of a circle.
"r%" is an integer variable, indicating the radius of a circle in pixels.
"type%" is an integer variable, indicating the type of a circle.
"mode%" is an integer variable, indicating the state of a pixel.
Example
CIRCLE(80, 120, 8, 1, 1)
See Also
CLS, LINE, PUT_PIXEL, RECTANGLE
LINE
Purpose
To draw a line on the LCD.
Syntax
LINE(x1%, y1%, x2%, y2%, mode%)
Remarks
"x1%", "y1%" are integer variables, indicating the x, y coordinates of where a
line starts.
"x2%", "y2%" are integer variables, indicating the x, y coordinates of where a
line ends.
"mode%" is an integer variable, indicating the state of a pixel.
Example
LINE(10, 10, 120, 10, 1)
LINE(80, 120, 10, 10, 1)
See Also
CIRCLE, CLS, PUT_PIXEL, RECTANGLE
134
Part I
TYPE%
Meaning
0
SHAPE_NORMAL
1
SHAPE_FILLL
MODE%
Meaning
-1
DOT_REVERSE
0
DOT_CLEAR
1
DOT_MARK
MODE%
Meaning
-1
DOT_REVERSE
0
DOT_CLEAR
1
DOT_MARK
Hollow object
Solid object
Dot in Reverse mode
Dot being cleared
Dot being marked
' draw a solid circle centered at
(8,120) with radius of 8 pixels
Dot in Reverse mode
Dot being cleared
Dot being marked
' draw a horizontal line
' draw an oblique line
Need help?
Do you have a question about the 8 Series and is the answer not in the manual?