circle(x, y, d);Draw a circle to the opengl context
Arguments
xThe x position of the circleyThe y position of the circledThe diameter of the circlerect(x, y, w, h);Draw a rectangle to the opengl context
Arguments
xThe x position of the reactangleyThe y position of the reactanglewThe widthhThe heightsquare(x, y, s);Draw a square to the opengl context
Arguments
xThe x position of the squareyThe y position of the squaresThe size of the squareline(x1, y1, x2, y2);Draw a line to the opengl context
Arguments
x1The x position of the first pointy1The y position of the first pointx2The x position of the second pointy2The y position of the second pointquad(x1, y1, x2, y2, x3, y3, x4, y4);Draw a quad on the screen
Arguments
x1The x position of the first pointy1The y position of the first pointx2The x position of the second pointy2The y position of the second pointx3The x position of the third pointy3The y position of the third pointx4The x position of the fourth pointy4The y position of the fourth pointtext(str, x, y);Draw text on the screen
Arguments
strString to renderxThe x position of the start of the textyThe y position of the top of the textFonts are not yet implemented
fill(150, 50, 255);
text('Hello lu5!', 40, 60);image(image, x, y, [w], [h]);Draw an image to the screen
Arguments
imageThe image referencexThe x position of the imageyThe y position of the image[w]The width of the image, if not specified, using source width[h]The height of the image, if not specified, using source height