From 61e791aa311b0ec6ac5d11ce1499e7bb2645a44d Mon Sep 17 00:00:00 2001 From: Dave Pagurek Date: Sun, 21 Jan 2024 15:31:11 -0500 Subject: [PATCH 1/2] Update default values in ortho() docs, use default args in example --- src/webgl/p5.Camera.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/webgl/p5.Camera.js b/src/webgl/p5.Camera.js index a661c357b0..186c276d8d 100644 --- a/src/webgl/p5.Camera.js +++ b/src/webgl/p5.Camera.js @@ -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 @@ -223,7 +223,7 @@ p5.prototype.perspective = function (...args) { * 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.' * ); From ca58fd78ed4efd061601ffae4cff0823c1086045 Mon Sep 17 00:00:00 2001 From: Dave Pagurek Date: Sun, 21 Jan 2024 15:36:10 -0500 Subject: [PATCH 2/2] Update p5.Camera.js --- src/webgl/p5.Camera.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/webgl/p5.Camera.js b/src/webgl/p5.Camera.js index 186c276d8d..a1e5572ed3 100644 --- a/src/webgl/p5.Camera.js +++ b/src/webgl/p5.Camera.js @@ -222,7 +222,6 @@ 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(); * describe( * 'two 3D boxes move back and forth along same plane, rotating as mouse is dragged.'