Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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