레퍼런스 setCamera()

setCamera()

Sets the current (active) camera of a 3D sketch.

setCamera() allows for switching between multiple cameras created with createCamera().

Note: setCamera() can only be used in WebGL mode.

예제

구문

setCamera(cam)

매개변수

cam
p5.Camera:

camera that should be made active.

This page is generated from the comments in src/webgl/p5.Camera.js . Please feel free to edit it and submit a pull request!

관련 레퍼런스