Gets color information at the specified coordinates on the drawing screen.
x argument, y argument:
Specifies the x - and y -coordinates of the pixel whose color information is to be retrieved. The range and type
of value that can be specified are the same as the x -argument and y -argument of set_ pixel. The retrieved color
information is returned as a 256-gradation RGB value.
Example:
To get color information (0,0,0) of coordinates (0,0)
from casioplot import *
set_pixel(0,0,(0,0,0))
get_pixel(0,0)
Note
• If either the x - or y -coordinate value is outside of the allowable range, nothing is returned.
getkey() (No argument)
Returns the key code of the calculator key pressed at the time this function is executed.
The key codes of the keys are shown below.
Example:
To display the key code of the pressed key in the upper left corner of the drawing screen. For this
example, the 5 key is held down.
from casioplot import *
while (True):
key=getkey()
clear_screen()
draw_string(0,0,str(key))
show_screen()
Note
• To stop script execution, press a.
draw_string( x , y , s [,color[,size]])
Draws a character string of the specified color at the specified coordinates.
x argument, y argument:
Specify the x -coordinate and y -coordinate of the upper left corner of the first character of the string to be drawn.
The range and type of value that can be specified are the same as the x -argument and y -argument of set_ pixel.
s argument:
Specifies the character string to be drawn as a str type. Only ASCII characters
12
13
14
15
16
21
22
23
24
25
26
34
31
32
33
35
36
41
42
43
44
45
46
51
52
53
54
55
56
61
62
63
64
71
72
73
74
75
81
82
83
84
85
91
92
93
94
95
138
*
can be displayed.
Need help?
Do you have a question about the CLASSWIZ CG and is the answer not in the manual?
Questions and answers