ryb2rgb

Convert colors in JavaScript from ryb to rgb

npm install ryb2rgb
6 downloads in the last month

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

npm loves you