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

[apps/gamut-mapping] Add gradient tool view #471

Merged
merged 9 commits into from Mar 6, 2024

Conversation

jamesnw
Copy link
Contributor

@jamesnw jamesnw commented Mar 5, 2024

This adds a way to explore and compare the gamut mapping algorithms across a gradient.

https://deploy-preview-471--colorjs.netlify.app/apps/gamut-mapping/gradients

Essentially, it uses the Color.js steps function to create steps between 2 colors in a space you pick, and then applies the gamut mapping method to each step.

It currently shows the speed of calculating each method, as well as a bar that shows when the gradient is out of the srgb, p3 and rec2020 gamuts.

image

I'm open to feature ideas. Some I'd like to add are sorting or showing a subset of methods, and show different distance calculations (DeltaE, L, H) per step, especially as those are added in #437.

Remaining blocking tasks

  • Get colors from URL
  • Handle invalid color inputs
  • Link to/from main tool?

Copy link

netlify bot commented Mar 5, 2024

Deploy Preview for colorjs ready!

Name Link
🔨 Latest commit 2de8b34
🔍 Latest deploy log https://app.netlify.com/sites/colorjs/deploys/65e89b0aa5ed830008e4a190
😎 Deploy Preview https://deploy-preview-471--colorjs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@facelessuser
Copy link
Collaborator

I think this is a great addition.

Copy link
Collaborator

@svgeesus svgeesus left a comment

Choose a reason for hiding this comment

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

Nice!

@jamesnw
Copy link
Contributor Author

jamesnw commented Mar 6, 2024

I also added a view to compare timing info.

image

@svgeesus svgeesus merged commit 297a37c into color-js:main Mar 6, 2024
5 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.

None yet

3 participants