1.0.0 ā¢ Published 3 years ago
colvert v1.0.0
color value conversion package
š Homepage
Install
npm i colvert
or npm install colvert
const conv = require("colvert");
Usage
const col = conv.hexTorgb("#0A167B"); // returns [10,22,123]
const col = conv.hexTohsl("#11191B"); // returns [192,23,9]
const col = conv.rgbTohex([23, 180, 60]); // returns "#17b43c"
const col = conv.randomcolor(); // returns random color(hex)
Functions
- rgbTohsl
- rgbTohex
rgbTocmyk
hexTorgb
- hexTohsl
hexTocmyk
hslTorgb
- hslTohex
hslTohsv
cmykTorgb
- cmykTohex
cmykTohsl
randomcolor
Author
š¤ abdul
- Github: @abdulmuqeet1
š¤ Contributing
Contributions, issues and feature requests are welcome!Feel free to check issues page. You can also take a look at the contributing guide.
Show your support
Give a āļø if this project helped you!
š License
Copyright Ā© 2021 abdul. This project is MIT licensed.
This README was generated with ā¤ļø by readme-md-generator
1.0.0
3 years ago