ELLIPSE
X, Y, WIDTH, HEIGHT, ID (optional)
The ability to draw an 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
REM Noticing I'm using a variable here as they are supported by the args.
DEF x% = 320
ELLIPSE x%, 280, 200, 160
ELLIPSE 360, 240, 160, 120
ELLIPSE 400, 200, 120, 80
ELLIPSE 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 ELLIPSE |