This program demonstrates the use of the basic shape primitive functions square(), rect(), ellipse(), circle(), arc(), line(), triangle(), and quad().
arc
Draws an arc.
ellipse
Draws an ellipse (oval).
A few basic shapes drawn in white and black over a grey background
Shape Primitives
Draw 2D shapes.
A few basic shapes drawn in different colors over a blue background
Color
Add color to your sketch.
Looking for the old p5.js site? Find it here!