Skip to content

fix: push() ignoring the ColorMode #7402 #7586

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

Merged

Conversation

swastikCommits
Copy link
Contributor

Resolves #7402

Changes:
Updated the push() function to save the current color mode (_colorMode) and its maximum values (_colorMaxes), and ensure pop() restores them.

Screenshots of the change:
None

PR Checklist

@swastikCommits
Copy link
Contributor Author

@perminder-17 Please review it

@perminder-17 perminder-17 self-requested a review March 1, 2025 10:17
@ksen0 ksen0 merged commit c83f4e3 into processing:main May 21, 2025
@ksen0
Copy link
Member

ksen0 commented May 26, 2025

Hi! Apologies that I didn't catch it in the first place, but merging this ended up breaking the tests: https://github.com/processing/p5.js/actions/runs/15168886104/job/42877818633

Maybe it's because of the .slice() call? Many errors with TypeError: Cannot read properties of undefined (reading 'slice') ? You're welcome to create a new PR to fix the issue without creating this side effect

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

Successfully merging this pull request may close these issues.

push() ignores the _colorMaxes field set by colorMode()
2 participants