natiny.render.circle_outline
natiny.render.circle_outline(cx, cy, radius [, thickness])
Draws a circle outline on the currently bound render target, using the current drawing color set by natiny.render.set_color().
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
cx |
number |
Center X position | |
cy |
number |
Center Y position | |
radius |
number |
Circle radius | |
thickness |
number |
1.0 |
Outline thickness |
Example
natiny.window.bind(win)
natiny.render.set_color(1.0, 1.0, 1.0, 1.0)
natiny.render.circle_outline(160, 120, 56, 3.0)
natiny.window.unbind()
Notes
- Uses the color previously set by
natiny.render.set_color(). The default is opaque white. - Draws to the render target most recently bound with
natiny.window.bind()ornatiny.surface.bind().