Skip to content

Commit

Permalink
Merge pull request #6758 from processing/fix/ortho-example
Browse files Browse the repository at this point in the history
Update default values in ortho() docs, use default args in example
  • Loading branch information
davepagurek authored Jan 26, 2024
2 parents b14f25e + ca58fd7 commit 3d45ce9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/webgl/p5.Camera.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ p5.prototype.perspective = function (...args) {
* maximum z values.
*
* If no parameters are given, the following default is used:
* ortho(-width/2, width/2, -height/2, height/2, 0, max(width, height)).
* ortho(-width/2, width/2, -height/2, height/2, 0, max(width, height) + 800).
* @method ortho
* @for p5
* @param {Number} [left] camera frustum left plane
Expand All @@ -222,8 +222,7 @@ p5.prototype.perspective = function (...args) {
* //there's no vanishing point
* function setup() {
* createCanvas(100, 100, WEBGL);
* camera(0, 0, 50*sqrt(3), 0, 0, 0, 0, 1, 0);
* ortho(-width / 2, width / 2, height / 2, -height / 2, 0, 500);
* ortho();
* describe(
* 'two 3D boxes move back and forth along same plane, rotating as mouse is dragged.'
* );
Expand Down

0 comments on commit 3d45ce9

Please sign in to comment.