circle(x, y, d);
Draw a circle to the opengl context
Arguments
x
The x position of the circley
The y position of the circled
The diameter of the circlerect(x, y, w, h);
Draw a rectangle to the opengl context
Arguments
x
The x position of the reactangley
The y position of the reactanglew
The widthh
The heightsquare(x, y, s);
Draw a square to the opengl context
Arguments
x
The x position of the squarey
The y position of the squares
The size of the squareline(x1, y1, x2, y2);
Draw a line to the opengl context
Arguments
x1
The x position of the first pointy1
The y position of the first pointx2
The x position of the second pointy2
The y position of the second pointquad(x1, y1, x2, y2, x3, y3, x4, y4);
Draw a quad on the screen
Arguments
x1
The x position of the first pointy1
The y position of the first pointx2
The x position of the second pointy2
The y position of the second pointx3
The x position of the third pointy3
The y position of the third pointx4
The x position of the fourth pointy4
The y position of the fourth pointtext(str, x, y);
Draw text on the screen
Arguments
str
String to renderx
The x position of the start of the texty
The y position of the top of the textFonts are not yet implemented
fill(150, 50, 255);
text('Hello lu5!', 40, 60);