User Manual

Table Of Contents
17-20
set_pixel()
Description: Draws a pixel of the specified color at the specified coordinates.
Syntax: set_pixel(x, y[, color])
x argument, y argument
Specifies the x- and y-coordinates of the pixel to be drawn.
Only int type values within the following ranges can be specified:
0 <
x < 383, 0 < y < 191.
The figure below shows the relationship between coordinate values and
locations on the drawing screen.
(0, 0)
(383, 0)
(383, 191)
(0, 191)
• color argument
The color of the pixel to be drawn can be specified as a 256-gradation RGB
value (0, 0, 0 to 255, 255, 255). For details about this argument, see “Draw
Function color Argument” (page 17-22).
Example: To draw a black pixel at coordinates (10, 10) and display the drawing screen
from casioplot import *
set_pixel(10,10,(0,0,0))
show_screen()
Black pixel
Note:
If either the
x- or y-coordinate value is outside of the allowable range, function
execution will be ignored (nothing drawn, no error).