Draw
Provides various drawing functions. Can only be used inside the Draw
callback.
Methods
Text(x, y, text)
Draws a text on the screen.
Line(x, y, x1, y1)
Draws a line on the screen.
Rect(x, y, w, h)
Draws a filled rectangle on the screen.
OutlinedRect(x, y, w, h)
Draws an outlined rectangle on the screen.
FilledCircle(x, y, radius)
Draws a filled circle on the screen.
SetColor(r, g, b, a)
Sets the current color for all upcomming drawing functions.
SetFont(fontIndex)
Sets the current font for all upcomming text functions.
W2S(Vec3)
Converts a Vec3 world coordinate into Vec2 screen space coordinates. Returns Vec2(0, 0) if not on screen.