Skip to content

Commit 61e791a

Browse files
authored
Update default values in ortho() docs, use default args in example
1 parent 80338bc commit 61e791a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/webgl/p5.Camera.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ p5.prototype.perspective = function (...args) {
205205
* maximum z values.
206206
*
207207
* If no parameters are given, the following default is used:
208-
* ortho(-width/2, width/2, -height/2, height/2, 0, max(width, height)).
208+
* ortho(-width/2, width/2, -height/2, height/2, 0, max(width, height) + 800).
209209
* @method ortho
210210
* @for p5
211211
* @param {Number} [left] camera frustum left plane
@@ -223,7 +223,7 @@ p5.prototype.perspective = function (...args) {
223223
* function setup() {
224224
* createCanvas(100, 100, WEBGL);
225225
* camera(0, 0, 50*sqrt(3), 0, 0, 0, 0, 1, 0);
226-
* ortho(-width / 2, width / 2, height / 2, -height / 2, 0, 500);
226+
* ortho();
227227
* describe(
228228
* 'two 3D boxes move back and forth along same plane, rotating as mouse is dragged.'
229229
* );

0 commit comments

Comments
 (0)