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

Support to parse color from rgb[a] string format #22

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

luatnd
Copy link

@luatnd luatnd commented Jun 9, 2020

As in CSS or react-native stylesheet, we often use rgb/rgba format.
This pull request is to support RGB string with alpha channel supported, eg:

  • rgb(100,100,100)
  • rgba(255, 255, 0, 0.2)

Also a feature request here:
#21

@coveralls
Copy link

Coverage Status

Coverage decreased (-5.0%) to 93.578% when pulling 8513d57 on luatnd:master into cd18393 on onury:master.

@luatnd
Copy link
Author

luatnd commented Jun 26, 2020

I have added some test cases but this pull did not pass the coverage check!

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

Successfully merging this pull request may close these issues.

2 participants