infinite-canvas-tutorial icon indicating copy to clipboard operation
infinite-canvas-tutorial copied to clipboard

Allow other various color spaces

Open xiaoiver opened this issue 9 months ago • 0 comments

rect.fill = 'hsl(214.82, 100%, 50%)';

https://d3js.org/d3-color#color_rgb https://github.com/d3/d3-color/blob/main/src/color.js#L201

But oklab / oklch seems not implemented yet. https://github.com/d3/d3-color/issues/87

And CSS Level 4 syntax not implemented yet. https://github.com/d3/d3-color/pull/71

rgb(252 1 53) // failed
hsl(214.82deg 100% 50%) // failed

xiaoiver avatar Feb 25 '25 06:02 xiaoiver