color argument:
Specifies the color of the character string to be drawn. For details about this argument, see
color Argument" (page
139).
size argument:
Specifies one of the following as the character size of the character string to be drawn: "large", "medium",
"small". "medium" is applied when this argument is omitted.
* A-Z a-z 0-9 ! " # $ % & ' ( ) * + , - . / : ; < = > ? @ [ \ ] ^ _ ` { | } ~ space
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).
Draw Function color Argument
The color argument specifies the drawing color in 256 shades of RGB. For example, to specify black, input
(0,0,0) or [0,0,0]. To specify white, input (255,255,255) or [255,255,255]. If color argument input is omitted,
(0,0,0) is applied. Note that due to the performance of the display, the displayed color may be an approximation
of the specified value.
Drawing Screen
Executing show_screen displays the drawing screen with the contents drawn by set_ pixel and draw_string are
displayed.
Updating and Clearing the Drawing Screen
The drawing screen is updated each time show_screen is executed and cleared when clear_screen is executed
or when Shell is initialized. The currently displayed drawing screen is also updated when the py script finishes
executing.
To return to Shell from the drawing screen, press b.
File Compatibility
py files can be shared between your calculator and a computer. A py file created with the calculator can be
transferred to a computer for editing with a text editor or other software. A py file created on a computer can
be transferred to and run on the calculator.
py files you create in the Python app are stored in the calculator's storage memory (with file name extension
py). For information about the procedure for transferring files between the calculator and a computer, see
"Connecting the Calculator to a Computer" (page
py Files Created and Saved with This Calculator
The formats of py files created and saved with this calculator are shown below.
Character Code:
ASCII code
Characters used:
ASCII
Newline code:
CR+LF
Indent:
Spaces (two spaces for auto indent)
* A-Z a-z 0-9 ! " # $ % & ' ( ) * + , - . / : ; < = > ? @ [ \ ] ^ _ ` { | } ~ space
210).
*
139
"Draw Function
Need help?
Do you have a question about the CLASSWIZ CG and is the answer not in the manual?
Questions and answers