Scratch for Java

Camera()

The Camera class represents a camera that can be used to view a scene. It provides methods to set the position of the camera, convert between screen and local coordinates, and zoom in and out.

Example usage:

Camera camera = new Camera();
 camera.setPosition(0, 0);
 camera.setZoom(200);

Examples

View on GitHub

Syntax

Java

new Camera()
Camera()

Create Shareable URL

Select Sections