Skip to content

parse string in css format 'rgb(12,34,56)'#3

Open
coraliefreyja wants to merge 2 commits intombleigh:masterfrom
coraliefreyja:master
Open

parse string in css format 'rgb(12,34,56)'#3
coraliefreyja wants to merge 2 commits intombleigh:masterfrom
coraliefreyja:master

Conversation

@coraliefreyja
Copy link

So we can use, for example:

"rgb(128,128,128)".to_color

or similarly,

Colorist::Color.from_string("rgb( 1, 2, 3 )")

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.

1 participant