colvert
v1.0.0
Published
color conversion npm package
Downloads
8
Maintainers
Readme
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