-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Conversation
@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). |
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. |
Browsers still don't generally support `color(--hsv)` syntax so will necessitate conversion. There may be slight difference between old HSB implementation and color.js HSV implementation.
Rewrite color module based on findings in #7374 and enable HDR color support in 2D canvas.