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

Copper: Can't round trip RGB/HSL for nvgHSL #4

Open
Paul-Dempsey opened this issue Jun 23, 2023 · 0 comments
Open

Copper: Can't round trip RGB/HSL for nvgHSL #4

Paul-Dempsey opened this issue Jun 23, 2023 · 0 comments
Labels
bug Something isn't working copper The pachde Copper module

Comments

@Paul-Dempsey
Copy link
Owner

nanovg provides nvgHSL* functions, but doesn't provide functions to extract the same h, s, or l from an NVGcolor.
I've written some basic functions that have been workable for the purposes of imagine, but it's a real problem for Copper, and I disabled hex editing.

To fix this the options are:

  • reverse-engineering the math in nvgHSL*
  • write an alternative color representation with consistent round-trip API, perhaps mining code from elsewhere
@Paul-Dempsey Paul-Dempsey added bug Something isn't working copper The pachde Copper module labels Jun 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working copper The pachde Copper module
Projects
None yet
Development

No branches or pull requests

1 participant