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

New plugin: mix #36

Closed omgovich closed 3 years ago

omgovich commented 3 years ago

New mix method to create a mixture of two colors in LCH color space (the same way it will be done in the new CSS color-mix function)

github-actions[bot] commented 3 years ago

Size Change: +1.52 kB (+22%) 🚨

Total Size: 8.44 kB

Filename Size Change
./dist/plugins/lab.js 1.03 kB +152 B (+17%) ⚠️
./dist/plugins/lch.js 1.33 kB +171 B (+15%) ⚠️
./dist/plugins/xyz.js 830 B +162 B (+24%) 🚨
./dist/plugins/mix.js 1.04 kB +1.04 kB (new file) 🆕
ℹ️ 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/names.js` | 1.36 kB | 0 B |

compressed-size-action

codecov-commenter commented 3 years ago

Codecov Report

Merging #36 (11dcde2) into master (8bed8ec) will not change coverage. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master       #36   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           30        31    +1     
  Lines          375       391   +16     
  Branches        82        84    +2     
=========================================
+ Hits           375       391   +16     
Impacted Files Coverage Δ
src/colorModels/lab.ts 100.00% <100.00%> (ø)
src/colorModels/lch.ts 100.00% <100.00%> (ø)
src/colorModels/xyz.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 8bed8ec...11dcde2. Read the comment docs.