-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Masking behaviour change between 1.4.1 and latest #6770
Comments
For now, setting |
Thank you for the swift response, just as a curiosity, is that the correct way to go about it or am I encountering this because I stepped outside of the most beaten path? |
That method should still work, so it's worth fixing! But to clip to a path, we now have |
While I personally love that solution I'm currently using the previous example as a mini-demo to learn how to play with shapes ( both adding and subtracting shapes ) Anything involving push and pop requires me to increase my students' load of technical information of the inner workings of P5 and I generally try to avoid it until much later on. This example allows me to keep the complexity somewhat contained to the objects we create and therefore allows the students to maintain a sense of control and not get overwhelmed. Thank you again for pointing out that solution but if the goal is teaching neophytes I feel like the "old" way offers a more direct and intuitive approach and I agree that it should be restored/maintained. |
Hey, I'm quite sure that either the Run this code (not created by me): https://editor.p5js.org/allison.parrish/sketches/kOHWUvQR1 on a display that has a display density not equal to 1, and you will see that the masked shape appears to be offset from the cursor. When you include I looked into the |
Thanks @Papershine, that would be great! Let me know if you have any questions! (also hello from someone else who went to UBC!) |
Most appropriate sub-area of p5.js?
p5.js version
1.9.0
Web browser and version
chrome
Operating system
irrelevant/webEditor
Steps to reproduce this
Steps:
Snippet:
This is something I used to teach in class, now it's broken and doesn't even give an error, what changed? how do I fix it?
The text was updated successfully, but these errors were encountered: