HSL
Convert colors to RGB.
Preview
import * as RGB from 'https://deno.land/x/rgb/mod.ts';
Hex
const hex = '#0000FF'; // Blue
const rgb = RGB.fromHex(hex);
console.log(rgb); // [ 0 , 0 , 255 ]
HSL
const hsl = [ 0 , 100 , 50 ]; // Red
const rgb = RGB.fromHSL(hsl);
console.log(rgb); // [ 255 , 0 , 0 ]