processing / p5.js

p5.js is a client-side JS platform that empowers artists, designers, students, and anyone to learn to code and express themselves creatively on the web. It is based on the core principles of Processing. http://twitter.com/p5xjs —
http://p5js.org/
GNU Lesser General Public License v2.1
21.4k stars 3.28k forks source link

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

Closed davepagurek closed 7 months ago

davepagurek commented 7 months ago

Resolves https://github.com/processing/p5.js/issues/6755

Changes

Screenshots of the change

Before: image

After: image

PR Checklist

davepagurek commented 7 months ago

@diyaayay since you updated this example last, let me know if you think these changes make sense to you!

diyaayay commented 7 months ago

@davepagurek Yes, I think these work well now. I should have updated the documentation while adding 800 to the default far value. Thanks for looking into this.