Convert colors in JavaScript from ryb to rgb
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
tests
README.md fix docs and package Mar 2, 2013
package.json fix docs and package Mar 2, 2013
ryb2rgb.js Initial Commit Mar 2, 2013

README.md

ryb2rgb

Convert colors in JavaScript from ryb to rgb

Example

ryb2rgb

var ryb2rgb = require('ryb2rgb');
console.log(ryb2rgb([0, 255, 0]));

yields

[255, 255, 0]

Usage

var ryb2rgb = require('ryb2rgb');

or

<script src="ryb2rgb.js"></script>
// defines ryb2rgb()

Installation

npm install ryb2rgb

Credits

Original code https://www.paintassistant.com/rybrgb.html

Made generic for the web and Node.js

License

MIT