135
PUT_PIXEL
Purpose To mark a pixel (or a dot) on the LCD.
Syntax PUT_PIXEL(x%, y%, mode%)
Remarks “x%”, “y%” are integer variables, indicating the x, y coordinates of a pixel.
“mode%” is an integer variable, indicating the state of a pixel.
-1 DOT_REVERSE Dot in Reverse mode
0 DOT_CLEAR Dot being cleared
1 DOT_MARK Dot being marked
Example
PUT_PIXEL(80, 120, 1) ' mark a pixel at (80, 120)
See Also CIRCLE, CLS, LINE, RECTANGLE
RECTANGLE
Purpose To draw a rectangle on the LCD.
Syntax RECTANGLE(x1%, y1%, x2%, y2%, type%, mode%)
Remarks “x1%”, “y1%”
are integer variables, indicating the x, y coordinates of where a
diagonal starts.
“x2%”, “y2%” are integer variables, indicating the x, y coord
diagonal ends.
“type%” is an integer variable, indicating the type of a circle.
0 SHAPE_NORMAL Hollow object
1 SHAPE_FILLL Solid object
“mode%” is an integer variable, indicating the state of a pixel.
-1 DOT_REVERSE Dot in Reverse mode
0 DOT_CLEAR Dot being cleared
1 DOT_MARK Dot being marked
Example
RECTANGLE(10, 20, 80, 100, 1, 1)
RECTANGLE(10, 100, 80, 20, 1, 1)
' draw a rectangle
' same rectangle as above
See Also CIRCLE, CLS, LINE, PUT_PIXEL