draw_circle
Draws a filled circle on the canvas. Use it for player markers, projectiles, particles, pickups, buttons, and quick debug visuals.
Signature
draw_circle
Draws a circle centered at x and y. The origin is the top-left of the logical canvas, x increases to the right, and y increases downward.Signature
draw_circle(x: float, y: float, radius: float, color: Color) -> NoneParameters
| Name | Type | Default | Description |
|---|---|---|---|
x | float | None | Center x coordinate in logical canvas pixels. |
y | float | None | Center y coordinate in logical canvas pixels. |
radius | float | None | Circle radius in pixels. Use positive values. |
color | Color | None | Fill color, usually a named constant like RED or a Color instance. |
Returns
NoneExample
from conjure import *
init_window(360, 640, "Circle")
while not window_should_close():
begin_drawing()
clear_background(WHITE)
draw_circle(180, 320, 40, RED)
draw_text("Center point", 112, 372, 20, BLACK)
end_drawing()See also
draw_circle_linesdraw_rectdraw_text
For a complete loop that moves shapes around, continue with the quickstart or your first game. For rectangles and text, see the drawing overview.