Skip to content

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

Merged
svgeesus merged 9 commits into
color-js:mainfrom
oddbird:apps/gamut-mapping-gradient
Mar 6, 2024
Merged

svgeesus merged 9 commits into
color-js:mainfrom
oddbird:apps/gamut-mapping-gradient

Conversation

@jamesnw

@jamesnw jamesnw commented Mar 5, 2024 •

Copy link
Copy Markdown
Contributor

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?

@netlify

netlify Bot commented Mar 5, 2024 •

Copy link
Copy Markdown

βœ… 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
Copy Markdown
Collaborator

I think this is a great addition.

@svgeesus svgeesus left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nice!

@jamesnw

jamesnw commented Mar 6, 2024

Copy link
Copy Markdown
Contributor Author

I also added a view to compare timing info.

image

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

3 participants