Rendering¶
Set Background color¶
If you want to set a background color, you use this function before all draw functions:
Predefined shapes¶
We have some predefined shapes that can be used and be drew on the screen. Here are some:
Rectangle:
Drawing the shape¶
To draw your shape, you use this:
- More shapes will be coming soon
Draw a line¶
To draw a line, you use this:
Draw rectangle¶
If you just want to draw a rectangle to test or to use it for your game/app, then you have 3 options:
Option one: just draw a rectangle
Third option: Draw a rectangle of lines
Draw image¶
You first need to create a variable with your image and image data:
main.DEBUGIMAGE is an image that is included with the engine, so you can use it freely. Then you need to render it (In the best situation this will happen in your loop):