User Manual

Table Of Contents
14-21
• size argument
Specifies one of the following as the character size of the character string to be
drawn: “large”, “medium”. “medium” is applied when this argument is omitted.
Note: In addition to the “large” and “medium” sizes noted above, there is also
a “small” size provided for the color model calculator. Executing this function
with this calculator while “small” is specified for the size argument will cause the
“medium” size to be applied by default.
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 14-26) can
be displayed on the drawing screen.
u Draw Function color Argument
The color argument of each function specifies the color of a pixel or character string.
u Specifying a Color
Color is specified as a 256-gradation RGB value.
Since this calculator model has a monochrome black and white display, the value you
specify will cause either black or white to be applied as shown below.
(248,252,248) - (255,255,255)
Any other value
White
Black
u Data Types
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).
u Omitting Argument Specification
Omitting a color argument specification in a function causes (0,0,0) to be applied.