Spinning Sphere in 3D with p5.js
Channel:
Subscribers:
738
Published on ● Video Link: https://www.youtube.com/watch?v=aXwWWbWE40w
This p5.js sketch creates a 3D canvas and displays a rotating sphere. In setup(), it sets up a 400×400 pixel canvas using the WEBGL renderer. The draw() function is called continuously to update the frame. It clears the background with background(220), enables mouse control with orbitControl(), rotates the sphere around the Y-axis with rotateY(angle), and draws the sphere using sphere(80, 16, 10). The angle is slightly increased each frame (angle += 0.01) to make the sphere rotate smoothly over time.
Other Videos By sakkharin
2025-03-30 | A formula that symbolizes the essence of LLMs and information theory |
2025-03-30 | sakkharin is live |
2025-03-28 | MagicaVoxel & Three.js: File Compatibility Explained shorts |
2025-03-28 | Sora Interlude. 0322 3 No Flubs - Surf Ninja |
2025-03-28 | LOFAS |
2025-03-28 | color theory history |
2025-03-28 | interlude 0320 5 |
2025-03-28 | WHAT IF 0328 1 |
2025-03-27 | GLSL 2*(1.0+sin(x))*pow(cos(x-atan2(sin(t)*4,1)*2.0),2.) |
2025-03-27 | GLSL 0326 4 |
2025-03-27 | Spinning Sphere in 3D with p5.js |
2025-03-27 | Mathematicians Klein and Hilbert – The Joy of the Concrete and the Abstract |
2025-03-26 | Wavelet transform |
2025-03-26 | LLM Natures |
2025-03-26 | "Reascending Jinggang Mountain" and Its Lasting Influence |
2025-03-26 | Digesting Duck the philosopher Immanuel Kant |
2025-03-26 | nations glorified the fallen as heroes |
2025-03-25 | Relative references must start with either "/", "./", or "../". |
2025-03-25 | 0325 2 #assemblyscript asm.js WebAssembly |
2025-03-24 | Discover Plato's Unique Dialogue Style! #beginners |
2025-03-24 | the Barnum Effect. |