// Borrowed from http://learningthreejs.com/blog/2013/09/16/how-to-make-the-earth-in-webgl/
letgeometry=newTHREE.SphereGeometry(5,32,32)
// create the material, using a texture of startfield
letmaterial=newTHREE.MeshBasicMaterial()
material.map=textures.stars
material.side=THREE.BackSide
// create the mesh based on geometry and material
returnnewTHREE.Mesh(geometry,material)
}
Purpose-built for displays of data
Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.