Open
Description
Most appropriate sub-area of p5.js?
- Accessibility
- Color
- Core/Environment/Rendering
- Data
- DOM
- Events
- Image
- IO
- Math
- Typography
- Utilities
- WebGL
- Build process
- Unit testing
- Internationalization
- Friendly errors
- Other (specify if possible)
p5.js version
v1.11.0
Web browser and version
Firefox 128.5.1esr
Operating system
Windows 10
Steps to reproduce this
Steps:
- Call push()
- 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:
function draw() {
colorMode(RGB, 1.0);
background(0.5);
push();
//colorMode(RGB, 0.5); // Uncomment me for fun and bugs
pop();
textSize(32);
fill(0.5);
text('Oh no', 50, 50);
}