Moved from webgl-operate
Implement parser for color initialization/creation, e.g.,
Color.parse('lab(0.1, 0.1, 0.1)');
Color.parse('rgb(0.1, 0.1, 0.1)');
Color.parse('hsl(0.1, 0.1, 0.1)');
Color.parse('cmyk(0.1, 0.1, 0.1, 0.1)');
Color.parse('rgba(0.1, 0.1, 0.1, 0.1)');
- etc
This could be also useful (among other things), e.g., data attributes of canvases in haeley-canvas <canvas data-clear-color='laba(0.1, 0.1, 0.1, 1.0)'> ... currently only parsing of a 4-tuple is supported and interpreted as rgba (in Canvas.constructor).
Moved from webgl-operate
Implement parser for color initialization/creation, e.g.,
Color.parse('lab(0.1, 0.1, 0.1)');Color.parse('rgb(0.1, 0.1, 0.1)');Color.parse('hsl(0.1, 0.1, 0.1)');Color.parse('cmyk(0.1, 0.1, 0.1, 0.1)');Color.parse('rgba(0.1, 0.1, 0.1, 0.1)');This could be also useful (among other things), e.g., data attributes of canvases in haeley-canvas
<canvas data-clear-color='laba(0.1, 0.1, 0.1, 1.0)'>... currently only parsing of a 4-tuple is supported and interpreted as rgba (inCanvas.constructor).