Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs don't give examples of all supported constructor arguments #181

Open
thw0rted opened this issue May 6, 2020 · 1 comment
Open

Docs don't give examples of all supported constructor arguments #181

thw0rted opened this issue May 6, 2020 · 1 comment

Comments

@thw0rted
Copy link

thw0rted commented May 6, 2020

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.

@Qix-
Copy link
Owner

Qix- commented May 6, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants