Playing with p5.js
This is a translation in javascript/p5.js of Daniel Shiffman's coding challenge : Spherical Geometry from processing (java).
- modifications of my own
https://github.com/CodingTrain/website/tree/master/CodingChallenges/CC_025_SphereGeometry
For the background I used an offscreen 2D canvas to draw the stars and later textured it : plane(640,480);
DEMO SphereGeometry : https://philippemarcmeyer.github.io/SphericalGeometry.html
See also SuperShapes which includes part of this script and brings it beyond
DEMO SuperShapes : https://philippemarcmeyer.github.io/demo-supershapes.html