[x y width height start stop]
[x y width height start stop mode]clj
Draws an arc in the display window. Arcs are drawn along the outer edge of an ellipse defined by the x, y, width and height parameters. The origin or the arc's ellipse may be changed with the ellipse-mode function. The start and stop parameters specify the angles at which to draw the arc. The mode is either :open, :chord or :pie.
[x y width height]
Draws an ellipse (oval) in the display window. An ellipse with an equal width and height is a circle. The origin may be changed with the ellipse-mode function
[x1 y1 z1 x2 y2 z2]
[x1 y1 x2 y2]
Draws a line (a direct path between two points) to the screen. The version of line with four parameters draws the line in 2D. To color a line, use the stroke function. A line cannot be filled, therefore the fill method will not affect the color of a line. 2D lines are drawn with a width of one pixel by default, but this can be changed with the stroke-weight function. The version with six parameters allows the line to be placed anywhere within XYZ space.
[x y z]
Draws a point, a coordinate in space at the dimension of one pixel. The first parameter is the horizontal value for the point, the second value is the vertical value for the point, and the optional third value is the depth value. Drawing this shape in 3D using the z parameter requires the :P3D or :opengl renderer to be used.
[x1 y1 x2 y2 x3 y3 x4 y4]
A quad is a quadrilateral, a four sided polygon. It is similar to a rectangle, but the angles between its edges are not constrained to be ninety degrees. The first pair of parameters (x1,y1) sets the first vertex and the subsequent pairs should proceed clockwise or counter-clockwise around the defined shape.
[x y width height r]
[x y width height]
[x y width height top-left-r top-right-r bottom-right-r bottom-left-r]
Draws a rectangle to the screen. A rectangle is a four-sided shape with every angle at ninety degrees. By default, the first two parameters set the location of the upper-left corner, the third sets the width, and the fourth sets the height. These parameters may be changed with rect-mode. To draw a rounded rectangle, add a fifth parameter, which is used as the radius value for all four corners. To use a different radius value for each corner, include eight parameters.
[x1 y1 x2 y2 x3 y3]
A triangle is a plane created by connecting three points. The first two arguments specify the first point, the middle two arguments specify the second point, and the last two arguments specify the third point.