p5’s WEBGL mode includes 7 primitive shapes. Those shapes are plane, box, cylinder, cone, torus, sphere, and ellipsoid. Additionally, model() displays a custom geometry loaded via loadModel(). This example includes each of the primitive shapes. It also includes a model from NASA’s collection.
Geometries by p5.js Contributors and the Processing Foundation is licensed under CC BY-NC-SA 4.0.