processing / p5.js-website-legacy

Archived p5.js website 2015-2024
http://archive.p5js.org
MIT License
241 stars 490 forks source link

Prevent points from overflowing view area if width > height in mouse signals example #1508

Closed 0xekez closed 4 months ago

0xekez commented 4 months ago

Before changes the mouse input example would overflow the display area if the width was > the height (notice how the top line goes below its bottom axis in the image).

image

After the changes they get scaled correctly.

image
limzykenneth commented 4 months ago

I believe the overflow is intentional here and should not be scaled. Please open an issue if you like to discuss this example further. Thanks!