Skip to content

Commit 3d45ce9

Browse files
authored
Merge pull request #6758 from processing/fix/ortho-example
Update default values in ortho() docs, use default args in example
2 parents b14f25e + ca58fd7 commit 3d45ce9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/webgl/p5.Camera.js

Lines changed: 2 additions & 3 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
@@ -222,8 +222,7 @@ p5.prototype.perspective = function (...args) {
222222
* //there's no vanishing point
223223
* function setup() {
224224
* createCanvas(100, 100, WEBGL);
225-
* camera(0, 0, 50*sqrt(3), 0, 0, 0, 0, 1, 0);
226-
* ortho(-width / 2, width / 2, height / 2, -height / 2, 0, 500);
225+
* ortho();
227226
* describe(
228227
* 'two 3D boxes move back and forth along same plane, rotating as mouse is dragged.'
229228
* );

0 commit comments

Comments
 (0)