Skip to content

Commit

Permalink
Improved the comments!
Browse files Browse the repository at this point in the history
  • Loading branch information
Brahvim authored Nov 27, 2022
1 parent 2639aec commit 189f95c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/webgl/p5.Camera.js
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,12 @@ p5.prototype.frustum = function(...args) {
* }
*
* function draw() {
* // The camera will automatically
* // rotate to look at [0, 0, 0].
* camera.lookAt(0, 0, 0);
*
* // The camera will move on the
* // x axis.
* camera.setPosition(sin(frameCount / 60) * 200, 0, 100);
* box(20);
*
Expand Down

0 comments on commit 189f95c

Please sign in to comment.