drawCircle()
[Graphics]
void drawCircle (int x, int y, int radius);Description
Draws a circle on the chip.
Parameters
x: the x-coordinate of the center of the rectangle.
y: the y-coordinate of the center of the rectangle.
radius: the radius of the circle.
Returns
Nothing.
Example Code
The code draws circle in the center of the chip, with a radius of 10 pixels.
void setup() {
int width = chipWidth(); // gets the width of the chip
int height = chipHeight(); // gets the height of the chip
// draws a circle in the center of the chip, with a
// width of 10 pixels and a height of 20 pixels
drawCircle(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.
