infinite-canvas-tutorial
infinite-canvas-tutorial copied to clipboard
Allow other various color spaces
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