DrawRectangle /Drawing

void DrawRectangle(vector2 pos, vector2 size, uint color1, uint color2, uint color3, uint color4)

Draws a rectangle at position pos and with size dimensions.

  • color1 upper left corner
  • color2 upper right corner
  • color3 lower left corner
  • color4 lower right corner

Sample:

void onSceneUpdate()
{
uint black = 0xFF000000;
uint dark = 0xFF0A0A0A; DrawRectangle(vector2(2, 250), vector2(64,64), black, black, dark, dark); }
Warning This function is not working on Android and iOS implementations yet.