Skip to content

Commit

Permalink
better demo
Browse files Browse the repository at this point in the history
  • Loading branch information
meodai committed May 10, 2024
1 parent 20a7533 commit 64a3198
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1533,8 +1533,14 @@ <h2 class="subtitle support__title">Support</h2>
key: 'hsl',
label: 'HSL',
fn: (hsl) => { return { h: hsl[0], s: hsl[1], l: hsl[2] } },
}
, {
}, {
key: 'rgb',
label: 'RYBitten',
fn: (hsl) => {
const [r, g, b] = rybHsl2rgb(hsl);
return { r, g, b };
},
}, {
key: 'jch',
label: 'JCH',
fn: (hsl) => { return { j: hsl[2] * 0.222, c: hsl[1] * 0.190, h: hsl[0] } },
Expand All @@ -1550,14 +1556,8 @@ <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';
let currentModelFn = hueBasedModels.find(m => m.key === currentHueModel).fn;
Expand Down

0 comments on commit 64a3198

Please sign in to comment.