renderer.setSize(width,500);// Set the size of the renderer
while(true){// Code that runs every frame
cube.rotation.x+=rotation;// Rotate cube by 0.01 in x every frame
cube.rotation.y+=rotation;// Rotate cube by 0.01 in y every frame
renderer.render(scene,camera);// Add the scene and camera to the renderer
yieldrenderer.domElement;
}
}
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.