Reference set()

set()

Sets the camera’s position, orientation, and projection by copying another camera.

The parameter, cam, is the p5.Camera object to copy. For example, calling cam2.set(cam1) will set cam2 using cam1’s configuration.

Examples

Syntax

set(cam)

Parameters

cam
p5.Camera: camera to copy.

Related References