question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Compatibility with existing color forumulas

See original GitHub issue

The color formulas for each source are defined in a color file containing the command line arguments to imagemagick convert

We need to translate these to rio color arguments. Two main options

  1. Have a rio color --compatability option that will read convert args and interpret them on the fly
  2. Script/manually adjust all the color formulas in pxm-sources. Create an alternate color.rio file that mirrors the intent of color but with rio color syntax

Questions:

  • what do we do with convert options that don’t translate well to rio color?
  • how are we going to visually test to make sure rio color output matches convert’s?

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:16 (14 by maintainers)

github_iconTop GitHub Comments

1reaction
e-n-fcommented, Apr 20, 2016

Yes, I think LCH is the colorspace that will let you best adjust each of the parameters independent of the others. It should be possible to do it in xyY space too, where hue and saturation are angle and distance on the xy plane independent of lightness on Y, but LCH has the extra convenience of putting gray at the origin instead of at (⅓,⅓) and giving you perceptually uniform hue angles (in exchange for the inconvenience of not being able to mix colors by linear interpolation on the plane).

1reaction
celoydcommented, Apr 19, 2016

The LCH conversion should give better results, and I don’t think the discrepancy is a problem – there’s no color formula that would have been good with IM that will be bad with RC.

Read more comments on GitHub >

github_iconTop Results From Across the Web

The Only Color Combinations Cheat Sheet You Need (2023)
In this post, we break down simple methods for choosing the best colors, as well as a variety of popular combinations.
Read more >
Cutting Paint Color Formulas - The Land of Color
Whenever you cut an existing formula, you're essentially creating a new color because all 3 dimensions of color, hue, value and chroma will...
Read more >
Let's do Color & Math. Understanding the formulas of color…
Understanding the formulas of color conversion ... A tool that works with a single HEX code as input and tells if a particular...
Read more >
Color Formula Guide - Rit Dye
All of our formulas are listed with liquid dye measurements.​​ If you are using powder dye, use this conversion chart to convert the...
Read more >
Sher-Color - Sherwin-Williams
A custom formula for a more accurate color match using Sherwin-Williams paint. Formulas for the closest colors available in the Sherwin-Williams palette.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found