An open API service indexing awesome lists of open source software.

https://github.com/williankeller/convert-colors-hex-rgb

Library to Convert colors Hex to RGB / RGB to HEX
https://github.com/williankeller/convert-colors-hex-rgb

convert-colors-hex hex hex-to-rgb javascript jquery-plugin js-library rgb rgb-to-hex

Last synced: over 1 year ago
JSON representation

Library to Convert colors Hex to RGB / RGB to HEX

Awesome Lists containing this project

README

          

# Convert colors HEX to RGB / RGB to HEX
Convert colors from HEX to RGB and vice-and-versa with jQuery.

### Usage
This script is pretty simple to use.
You only have to have the jQuery in your local and then download/clone this script.

You can pass the values in HEX or in the RGB, the script will handle the value and work with the conversion.
If you have informed a value in RGB the script will convert it to HEX and vice-and-versa.

### Convert HEX to RGB

```javascript
$.convertColors('#3498db');
```

### Convert RGB to HEX
```javascript
$.convertColors('rgb(52,152,219)');
```

### Contribution

Want to contribute to this extension? The quickest way is to open a [pull request on GitHub](https://help.github.com/articles/using-pull-requests).

### Support

If you encounter any problems or bugs, please open an issue on [GitHub](https://github.com/williankeller/convert-colors-hex-rgb/issues).
Need help setting up or want to customize this extension to meet your business needs?