ELLIPSEF
X, Y, WIDTH, HEIGHT, ID (optional)
The ability to draw a filled ellipse 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, 200
REM Noticing I'm using a variable here as they are supported by the args.
DEF x% = 320
ELLIPSEF x%, 280, 200, 160
RGB 255, 0, 0, 150
ELLIPSEF 360, 240, 160, 120
RGB 255, 0, 0, 100
ELLIPSEF 400, 200, 120, 80
RGB 255, 0, 0, 50
ELLIPSEF 440, 160, 80, 40
END BITMAP
END SCREEN
Output
Parameters
| Parameter | Optional | Type | Description |
|---|---|---|---|
| X | No | integer or variable | The center X position |
| Y | No | integer or variable | The center Y position |
| WIDTH | No | integer or variable | The width of the ellipse |
| HEIGHT | No | integer or variable | The height of the ellipse |
| ID | Yes | string or variable | ID to help identify or style the ELLIPSEF |