17-22
Example: To draw large size “abc” in black at coordinates (0, 0) and display the drawing
screen
from casioplot import *
draw_string(0,0,”abc”,(0,0,0),”large”)
show_screen()
Note:
If both the •
x- and y-coordinate values are within the allowable range, the drawn character
string will be displayed within the drawing screen range, even if it partially runs off of the
drawing screen.
If either the
x- or y-coordinate value is outside of the allowable range, function execution will
be ignored (nothing drawn, no error).
Only ASCII characters (“py Files Created and Saved with This Calculator”, page 17-27) can •
be displayed on the drawing screen.
Draw Function color Argument u
The color argument of each function specifies the color of a pixel or character string.
Specifying a Color u
Color is specified as a 256-gradation RGB value.
Example: (0,0,0) Black
(255,255,255) White
Data Types u
Data can be specified as a list[R,G,B] or tuple(R,G,B) type.
Only int type values within the range of 0 to 255 can be specified for each element (R, G,
B).
Omitting Argument Specification u
Omitting a color argument specification in a function causes (0,0,0) to be applied.
color Argument Precautions
There may be some tonal variation between the specified RGB value and this product’s
display screen. This is due to hardware limitations and does not indicate malfunction.
Specified colors that cannot be reproduced are replaced by pseudo colors that can be
displayed by this product.