omgovich / colord

👑 A tiny yet powerful tool for high-performance color manipulations and conversions
https://colord.omgovich.ru
MIT License
1.67k stars 49 forks source link

Mix colors through CIE LAB color space #37

Closed omgovich closed 3 years ago

omgovich commented 3 years ago

I was trying to mimic the CSS drafts in the previous version, but produced mixtures look weird since the hue interpolation logic, so I switched the space for mixing to CIE LAB which produces better results.

codecov-commenter commented 3 years ago

Codecov Report

Merging #37 (8dbca33) into master (7211974) will not change coverage. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master       #37   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           31        32    +1     
  Lines          391       395    +4     
  Branches        84        84           
=========================================
+ Hits           391       395    +4     
Impacted Files Coverage Δ
src/manipulate/mix.ts 100.00% <100.00%> (ø)
src/plugins/mix.ts 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 7211974...8dbca33. Read the comment docs.

github-actions[bot] commented 3 years ago

Size Change: -78 B (-1%)

Total Size: 8.36 kB

Filename Size Change
./dist/plugins/mix.js 960 B -78 B (-8%)
ℹ️ View Unchanged | Filename | Size | Change | | :--- | :---: | :---: | | `./dist/index.js` | 1.78 kB | 0 B | | `./dist/plugins/a11y.js` | 456 B | 0 B | | `./dist/plugins/hwb.js` | 613 B | 0 B | | `./dist/plugins/lab.js` | 1.03 kB | 0 B | | `./dist/plugins/lch.js` | 1.33 kB | 0 B | | `./dist/plugins/names.js` | 1.36 kB | 0 B | | `./dist/plugins/xyz.js` | 830 B | 0 B |

compressed-size-action