Skip to main content
100%

Fork of 3D Cube of Spheres

✓ Published0🌍 Public
PPremkumar
Last edited Aug 6, 2025
Created on Aug 6, 2025
Forked from 3D Cube of Spheres

A rotating cube constructed from 64 colored spheres demonstrates Three.js's 3D rendering capabilities. Each sphere's hue is derived from its grid position using HSL color mapping, creating a gradient across the cube's volume. The scene uses `THREE.Scene`, `THREE.DirectionalLight`, and `THREE.AmbientLight` for illumination, while `OrbitControls` enables user interaction. The animation continuously rotates the sphere group, and the WebGL renderer displays the result in a black background.

AI-generated description
MIT Licensed

Similar vizzes