fillCircle()
[Graphics]
void fillCircle (int x, int y, int radius);Description
Draws a filled circle on the chip.
Parameters
x: the x-coordinate of the center of the circle.
y: the y-coordinate of the center of the circle.
radius: the radius of the circle.
Returns
Nothing.
Example Code
The code draws a filled circle in the center of the chip, with a width of 10 pixels and a height of 20 pixels.
void setup() {
int width = chipWidth(); // gets the width of the chip
int height = chipHeight(); // gets the height of the chip
// draws a filled circle in the center of the chip, with a
// width of 10 pixels and a height of 20 pixels
fillCircle(width / 2, height / 2, 10);
}
void loop() {
}Notes and Warnings
All coordinates must be inside the chip boundaries, use the functions
chipWidth() and chipHeight() to get the chip
dimensions.
