Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update default values in ortho() docs, use default args in example #6758

Merged
merged 2 commits into from
Jan 26, 2024
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
Loading