MENU
Shape Drawing
rect(x,y,width,height) draws a rectangle with the upper-left corner at (x,y), and the dimensions 'width' and 'height'.
strokeRect(x,y, width,height) draws a rectangle with the upper-left corner at (x,y), and the dimensions 'width' and 'height'. stroke() needs not be called for the rectangle to be drawn.
fillRect(x,y, width,height) draws a rectangle with the upper-left corner at (x,y), and the dimensions 'width' and 'height'. The rectangle is filled with the filling color. stroke() needs not to be called for the rectangle to be drawn.
clearRect(x,y, width,height) clears a rectangular area with the upper-left corner at (x,y), and the dimensions 'width' and 'height'. The color displayed in the area is the background color of the canvas. stroke() needs not to be called for the rectangle to be drawn.
arc(x,y,r,sRad,eRad[,cc]) draws a circular arc with radius r, centered at (x,y). The starting angle is defined by 'sRad', while the ending angle is defined by 'eRad'. 'cc' is a boolean value indicating whether to draw the arc in a counter-clockwise manner.