An interactive 3D galaxy generator built with Three.js. This project allows you to create and customize beautiful, spiral galaxies in real-time by manipulating various parameters.
The lil-gui panel provides the following controls to customize the galaxy:
count: The total number of stars in the galaxy.size: The size of each individual star particle.radius: The overall radius of the galaxy.branches: The number of spiral arms.spin: The "tightness" of the spiral arms' curve.randomness: The amount of random scatter applied to the stars.randomPower: The power applied to the randomness, affecting how far stars can scatter from the arms.insideColor: The color of the stars at the center of the galaxy.outsideColor: The color of the stars at the outer edges of the galaxy.
- Mouse Drag: Rotate the camera around the galaxy.
- Mouse Scroll: Zoom in and out.
- Right-Click Drag: Pan the camera.
This project was created as a learning exercise to explore procedural generation, particle systems in Three.js.