User Manual

17-22
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.
Drawing Screen k
The drawing screen is a special-purpose screen for displaying contents drawn using the
casioplot module’s
set_pixel and draw_string. To display the drawing screen, execute the
casioplot module’s show_screen function.
Drawing Screen Refresh Timing u
To refresh the drawing screen while it is displayed, execute the show_screen function.
If you put show_screen outside of a loop statement, executing the py script will cause only the
final result to appear on the drawing screen. Putting show_screen inside of a loop statement
will display the result of each draw operation until the final result is reached.
(a) Example:
show_screen outside of a py script loop statement (display of the final
result)
from casioplot import *
for i in range(60):
set_pixel(i,i)
show_screen()