spherical coordinates and the golden angle

Channel:
Subscribers:
738
Published on ● Video Link: https://www.youtube.com/watch?v=x-0fcDO8oFQ



Duration: 0:00
90 views
0


This code uses p5.js in WEBGL mode to evenly distribute points on a sphere using spherical coordinates and the golden angle. The use of acos and PI * (1 + sqrt(5)) creates a spiral arrangement, and the HSB color mode assigns colorful hues. The sphere rotates in the draw() function to give a 3D appearance.