fill circle
Problem it solves
You want a solid, filled circle—for example to represent an explosion, a shield, or a highlighted area—instead of just an outline.
What this block does
Draws a filled circle onto an image at the given center and radius.
The block
Block ID: spriteutilextdrawfilledcircle
Parameters
| Name | Type | Default | Meaning |
|---|---|---|---|
| to | Image | myImage | The image to draw onto |
| cx | number | 80 | Center x (0-160) |
| cy | number | 60 | Center y (0-120) |
| r | number | 5 | Radius (0-40) |
| col | color index | 3 | The color to fill with |
Example
let myImage = image.create(160, 120) spriteutils.fillCircle(myImage, 80, 60, 5, 3)
Add the extension
Add github:jwunderl/arcade-sprite-util to your project, or open: Import arcade-sprite-util.