Download Print this page

Casio fx-CG50 User Manual page 580

Hide thumbs Also See for fx-CG50:

Advertisement

get_pixel()
Description: Gets color information at the specified coordinates on the drawing screen.
Syntax:
get_pixel(x, y)
x
argument,
Specifies the
gotten. The range and type of value that can be specified are the same as the
x
-argument and
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 both the
function will return the RGB value for the color argument (page 17-22).
If either the
returned.
draw_string()
Description: Draws a character string of the specified color at the specified coordinates.
Syntax:
draw_string(x, y, s[, color[, size]])
x
argument,
Specifies the
to be drawn. The figure below shows the result when
for drawing the character "A".
The range and type of value that can be specified are the same as the
x
-argument and
s argument
Specifies, as a str type, the character string to be drawn.
color argument
Specifies, as a 256-gradation RGB value (0, 0, 0 to 255, 255, 255), the
character string to be drawn. For details about this argument, see "Draw
Function color Argument" (page 17-22).
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.
y
argument
x
y
- and
-coordinates of the pixel whose color information is to be
y
-argument of
x
y
- and
-coordinate values are within the allowable range, this
x
y
- or
-coordinate value is outside of the allowable range, nothing is
y
argument
x
y
- and
-coordinates of the first character of the character string
(10, 20)
y
-argument of
 
 
17-21
set
pixel
_
(page 17-20).
set
pixel
_
(page 17-20).
x
y
=10,
=20 is specified

Advertisement

loading

This manual is also suitable for:

Fx-cg50 auFx-cg20Fx-cg20 auFx-cg10