Skip to content
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

[p5.js 2.0] Color module rewrite #7406

Merged
merged 24 commits into from
Dec 17, 2024

Conversation

limzykenneth
Copy link
Member

Rewrite color module based on findings in #7374 and enable HDR color support in 2D canvas.

@limzykenneth
Copy link
Member Author

@davepagurek @ksen0 Here's an example HDR sketch with the HDR renderer: https://editor.p5js.org/limzykenneth/sketches/LB2vJFdj4

You'd need a HDR display to be able to properly view the sketch (eg. iPhone or newer Macs on Safari or Chrome).

@limzykenneth
Copy link
Member Author

Almost done with color.js based implementation. Created another sketch to show comparison of hue wheel of HSL, LCH, and okLCH colors: https://editor.p5js.org/limzykenneth/sketches/66VHrGzCo

okLCH is noticeably better at accurate hue angles, eg. see where the primaries RGB are located on the wheel and the distribution of their intermediate colors.

@limzykenneth limzykenneth marked this pull request as ready for review December 17, 2024 14:12
@limzykenneth limzykenneth merged commit 90df6cc into processing:dev-2.0 Dec 17, 2024
2 checks passed
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.

2 participants