You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Call colorMode() with a non-default max color value
Call pop(), all color calls after that will still continue to use the max color values specified in the push() section
Snippet:
functiondraw(){colorMode(RGB,1.0);background(0.5);push();//colorMode(RGB, 0.5); // Uncomment me for fun and bugspop();textSize(32);fill(0.5);text('Oh no',50,50);}
The text was updated successfully, but these errors were encountered:
Welcome! 👋 Thanks for opening your first issue here! And to ensure the community is able to respond to your issue, please make sure to fill out the inputs in the issue forms. Thank you!
Looking at the code responsible for push(), it seems like it would be a very simple change to make the function hold onto the value of _colorMaxes too.
I would be happy to submit a change that fixes this bug, if this is considered an issue.
Most appropriate sub-area of p5.js?
p5.js version
v1.11.0
Web browser and version
Firefox 128.5.1esr
Operating system
Windows 10
Steps to reproduce this
Steps:
Snippet:
The text was updated successfully, but these errors were encountered: