Mouse

The mouse() function returns a 2d vector representing the current mouse position relative to the renderer canvas, where (0, 0) is the center of the canvas.

camera.position.set(0, 0, 1);
camera.lookAt(0, 0, 0);

textElement("Move mouse inside renderer.");

update(() => {
    sphere(16).color("red").pos(mouse());
});