drawCircle()
Draw a circle straight onto the display.
display.drawCircle(x, y, radius)
This draws to the canvas and returns nothing, which is fast and best for shapes you will not change later. To keep a handle you can move or delete, create a Circle and add() it instead. Erase these drawings with clearDrawing().
Parameters
display.drawCircle(x, y, radius, color=Color.BLACK, fill=False, thickness=1)
| Parameter | Type | Default | Description |
|---|---|---|---|
x |
int or float |
required | The horizontal position of the center, in pixels. |
y |
int or float |
required | The vertical position of the center, in pixels. |
radius |
int or float |
required | The radius, in pixels. |
color |
Color |
Color.BLACK |
The color. |
fill |
bool |
False |
Whether the circle is filled in (True) or just an outline (False). |
thickness |
int |
1 |
The outline thickness, in pixels. |