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

Random color generation #38

Closed omgovich closed 3 years ago

omgovich commented 3 years ago

Many GH projects use random colors for their purposes, so it makes sense for us to add this tiny API.

In contrast to other libraries, our random is tree-shakeable.

codecov-commenter commented 3 years ago

Codecov Report

Merging #38 (1e50f61) into master (60847a6) will not change coverage. The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master       #38   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           32        33    +1     
  Lines          395       399    +4     
  Branches        84        84           
=========================================
+ Hits           395       399    +4     
Impacted Files Coverage Δ
src/index.ts 100.00% <100.00%> (ø)
src/random.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 60847a6...1e50f61. Read the comment docs.

github-actions[bot] commented 3 years ago

Size Change: +29 B (0%)

Total Size: 8.39 kB

Filename Size Change
./dist/index.js 1.81 kB +29 B (+2%)
ℹ️ View Unchanged | Filename | Size | Change | | :--- | :---: | :---: | | `./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/mix.js` | 960 B | 0 B | | `./dist/plugins/names.js` | 1.36 kB | 0 B | | `./dist/plugins/xyz.js` | 830 B | 0 B |

compressed-size-action