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

Bug in P_1_2_1_01 #175

Closed
whatsnewsisyphus opened this issue Jun 9, 2021 · 2 comments
Closed

Bug in P_1_2_1_01 #175

whatsnewsisyphus opened this issue Jun 9, 2021 · 2 comments
Assignees

Comments

@whatsnewsisyphus
Copy link

https://github.com/generative-design/Code-Package-p5.js/blob/master/01_P/P_1_2_1_01/sketch.js
Line 53, if you move the mouse beyond the canvas, it will fall out of the map range and make tileCountY undefined. It either needs a fallback, or a constraint on mouseY tileCountY = int(map(constrain(mouseY,0,height), 0, height, 2, 10));

@Niels-NTG Niels-NTG self-assigned this Jun 9, 2021
Niels-NTG added a commit that referenced this issue Jun 10, 2021
@Niels-NTG
Copy link
Member

This should be resolved now. I ended up implementing your proposed solution. Thanks!

@b-g
Copy link
Member

b-g commented Jun 11, 2021

@Niels-NTG Many thanks for taking care of this and the new release! Cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants