Skip to content

Commit

Permalink
add RYBitten to demo
Browse files Browse the repository at this point in the history
  • Loading branch information
meodai committed May 9, 2024
1 parent 8ddd6ae commit 910c08f
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1509,7 +1509,8 @@ <h2 class="subtitle support__title">Support</h2>

import { formatHex, converter, formatCss, inGamut } from 'https://cdn.skypack.dev/culori@^3.1.1';
import hljs from 'https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.7.0/es/highlight.min.js';

import { rybHsl2rgb } from "https://esm.sh/rybitten/"

import {
Poline,
positionFunctions,
Expand Down Expand Up @@ -1549,6 +1550,13 @@ <h2 class="subtitle support__title">Support</h2>
key: 'dlch',
label: 'DLCH',
fn: (hsl) => { return { l: hsl[2] * 100, c: hsl[1] * 51.484, h: hsl[0] } },
}, {
key: 'rgb',
label: 'RYBitten',
fn: (hsl) => {
const [r,g,b] = rybHsl2rgb(hsl);
return { r, g, b };
},
}];

let currentHueModel = 'hsl';
Expand Down

0 comments on commit 910c08f

Please sign in to comment.