MCPcopy
hub / github.com/processing/p5.js / createCamera

Method createCamera

src/webgl/p5.Framebuffer.js:640–645  ·  view source on GitHub ↗

* Creates a new * p5.Camera object to use with the framebuffer. * * The new camera is initialized with a default position `(0, 0, 800)` and a * default perspective projection. Its properties can be controlled with * p5.Camera methods

()

Source from the content-addressed store, hash-verified

638 * }
639 */
640 createCamera() {
641 const cam = new FramebufferCamera(this);
642 cam._computeCameraDefaultSettings();
643 cam._setDefaultCamera();
644 return cam;
645 }
646
647 /**
648 * Deletes the framebuffer from GPU memory.

Callers 5

constructorMethod · 0.95
p5.Camera.jsFile · 0.80
p5.RendererGL.jsFile · 0.80
webgl.jsFile · 0.80
cameraFunction · 0.80

Calls 2

_setDefaultCameraMethod · 0.80

Tested by

no test coverage detected