CIRCLE
X, Y, RADIUS, ID (optional)
The ability to draw a circle on a bitmap and display it on screen as an image.
Example
SCREEN
RGB 0, 0, 0
BITMAP 0, 0, 640, 480
RGB 255, 0, 0, 0
REM Noticing I'm using a variable here as they are supported by the args.
DEF x% = 320
CIRCLE x%, 220, 220
RGB 255, 0, 0, 50
CIRCLE 320, 220, 200
RGB 255, 0, 0, 100
CIRCLE 320, 220, 180
RGB 255, 0, 0, 150
CIRCLE 320, 220, 160
RGB 255, 0, 0, 200
CIRCLE 320, 220, 140
RGB 255, 0, 0, 250
CIRCLE 320, 220, 120
END BITMAP
END SCREEN
Output
Parameters
| Parameter | Optional | Type | Description |
|---|---|---|---|
| X | No | integer or variable | X position |
| Y | No | integer or variable | Y position |
| RADIUS | No | integer or variable | Radius of the circle |
| ID | Yes | string or variable | ID to help identify or style the CIRCLE |