* 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
()
| 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. |
no test coverage detected