Skip to content

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

Open
coraliefreyja wants to merge 2 commits into
mbleigh:masterfrom
coraliefreyja:master
Open

coraliefreyja wants to merge 2 commits into
mbleigh:masterfrom
coraliefreyja:master

Conversation

@coraliefreyja

Copy link
Copy Markdown

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