ryb2rgb

Convert colors in JavaScript from ryb to rgb

ryb2rgb

Convert colors in JavaScript from ryb to rgb

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

yields

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

or

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

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

Made generic for the web and Node.js

MIT