avh4 / elm-color

Standard representation of colors, encouraging sharing between packages. (This replaces elm-lang/core#Color from Elm 0.18.)
BSD 3-Clause "New" or "Revised" License
23 stars 6 forks source link

FromHex function #25

Open oalkaako opened 4 years ago

oalkaako commented 4 years ago

Hello!

I'll appreciate if you create a function that reads a string to return Color where the string could be "#AB2727" or "rbg(12,12,22)" or rgba.

Regards.

spectralliaisons commented 4 years ago

It looks like Color.fromHex does just this but is not exposed! @avh4 is aware; replied here