Mikroelektronika MIKROE-724 データシート

ページ / 726
mikroBasic PRO for dsPIC30/33 and PIC24
MikroElektronika
359
Glcd_Circle
Glcd_Circle_Fill
Prototype
sub  procedure  Glcd_Circle(dim  x_center,  y_center,  radius  as  integer,  dim 
color as byte)
Description Draws a circle on Glcd.
Parameters 
x_center
: x coordinate of the circle center. Valid values: 0..127 
y_center
: y coordinate of the circle center. Valid values: 0..63 
radius
: radius size 
color
: color parameter. Valid values: 0..2 
The parameter 
color
 determines the color of the circle line: 0 white, 1 black, and 2 inverts each dot.
Returns
Nothing.
Requires
Glcd needs to be initialized, see Glcd_Init routine.
Example
‘ Draw a circle with center in (50,50) and radius=10
Glcd_Circle(50, 50, 10, 1)
Notes
None.
Prototype
sub  procedure  Glcd_Circle_Fill(dim  x_center  as  integer,  dim  y_center  as 
integer, dim radius as integer, dim color as byte)
Description Draws a filled circle on Glcd.
Parameters 
x_center
: x coordinate of the circle center. Valid values: 0..127 
y_center
: y coordinate of the circle center. Valid values: 0..63 
radius
: radius size 
color
: color parameter. Valid values: 0..2 
The parameter 
color
 determines the color of the circle line: 0 white, 1 black, and 2 inverts each dot.
Returns
Nothing.
Requires
Glcd needs to be initialized, see Glcd_Init routine.
Example
‘ Draw a circle with center in (50,50) and radius=10
Glcd_Circle_Fill(50, 50, 10, 1)
Notes
None.