1.0.0 ā€¢ Published 3 years ago

colvert v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

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

šŸ¤ 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