Example
@Override
public void show() {
// Register a custom color
GameApp.addColor("my-custom-red", 255, 0, 0);
}
@Override
public void render(float delta) {
super.render(delta);
// Clear the screen ()
GameApp.clearScreen("white");
// Draw two filled rectangles
GameApp.startShapeRenderingFilled();
GameApp.drawRect(50, 50, 200, 100, "my-custom-red");
GameApp.drawCircle(300, 150, 50, "blue-500");
GameApp.endShapeRendering();
// Set the width of the outlines that we are going to draw
GameApp.setLineWidth(3);
// Draw outlines of the shapes
GameApp.startShapeRenderingOutlined();
GameApp.drawRect(50, 50, 200, 100, "black");
GameApp.drawCircle(300, 150, 50, "black");
GameApp.endShapeRendering();
}