color icon indicating copy to clipboard operation
color copied to clipboard

Docs don't give examples of all supported constructor arguments

Open thw0rted opened this issue 4 years ago • 1 comments

The docs give examples of various forms of Color.rgb() with 3 arguments, but never give an example of specifying an alpha value in the constructor. They do give the example Color('#7743CE').alpha(0.5) but nothing like Color.rgb([0x77, 0x43, 0xCE, 0.5]).

Also, there are no examples of construction from non-RGB color spaces. Color.hsl(200,80,70) works but is never mentioned.

thw0rted avatar May 06 '20 09:05 thw0rted

Yeah, the readme needs a makeover for sure. Feel free to open a PR.

Qix- avatar May 06 '20 16:05 Qix-