Download Print this page

Casio fx-CG50 User Manual page 579

Hide thumbs Also See for fx-CG50:

Advertisement

set_pixel()
Description: Draws a pixel of the specified color at the specified coordinates.
Syntax:
set_pixel(x, y[, color])
x
argument,
Specifies the
Only int type values within the following ranges can be specified:
0 <
x
The figure below shows the relationship between coordinate values and
locations on the drawing screen.
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()
Note:
If either the
execution will be ignored (nothing drawn, no error).
y
argument
x
y
- and
-coordinates of the pixel to be drawn.
< 383, 0 <
y
< 191.
(0, 0)
(0, 191)
x
y
- or
-coordinate value is outside of the allowable range, function
17-20
Black pixel
(383, 0)
(383, 191)

Advertisement

loading

This manual is also suitable for:

Fx-cg50 auFx-cg20Fx-cg20 auFx-cg10