.
int color) { var geometry = three.SphereGeometry(radius, 50, 50); var material = three.MeshPhongMaterial({"color": color}); return three.Mesh(geometry, material); } Similarly, add other planets with different sizes and colors. Step 6: Animating the 3d Scene As we now have all the physical things in