Skip to content

fix(color): stop re-wrapping p5.Color for every sketch - #9350

Open
Akshats-git wants to merge 4 commits into
processing:mainfrom
Akshats-git:fix/color-instance-wrappers
Open

Akshats-git wants to merge 4 commits into
processing:mainfrom
Akshats-git:fix/color-instance-wrappers

Conversation

@Akshats-git

@Akshats-git Akshats-git commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Resolves #9299

Changes:

Every new sketch wrapped the p5.Color methods again. Removed sketches stayed in memory, and red(), green(), blue() and alpha() could use the ranges of the wrong sketch.

Added test/unit/color/instances.js.

PR Checklist

I used Claude Code to help with this.

Copilot AI balanced review requested due to automatic review settings October 28, 2026 04:30

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@Akshats-git
Akshats-git force-pushed the fix/color-instance-wrappers branch from f2c0810 to 33fa03a Compare October 28, 2026 04:35
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.

[p5.js 2.0+ Bug Report]: Removed sketches are never freed and red()/green()/blue()/alpha() use the wrong range

2 participants