https://github.com/danielrohers/color
Plugin for color manipulation
https://github.com/danielrohers/color
Last synced: over 1 year ago
JSON representation
Plugin for color manipulation
- Host: GitHub
- URL: https://github.com/danielrohers/color
- Owner: danielrohers
- License: other
- Created: 2014-10-31T17:04:15.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-10-31T17:53:46.000Z (over 11 years ago)
- Last Synced: 2025-01-24T10:47:07.614Z (over 1 year ago)
- Language: JavaScript
- Size: 141 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Color
Plugin for color manipulation
#### color.increaseBrightness()
```js
var element = document.getElementById('element');
element.style.backgroundColor = color.increaseBrightness('#352FED', 30);
```
#### color.rgbToHex()
```js
var element = document.getElementById('element');
element.style.backgroundColor = color.rgbToHex('rgb(114, 85, 199)');
element.style.backgroundColor = color.rgbToHex([114, 85, 199]);
```