Closed avh4 closed 6 years ago
I'm stopping work for tonight. Feel free to contribute following the instructions at the top of this PR. I'll comment again when I'm picking this up again.
I will now start work on the functions above that you haven't done yet, as well as some of the documentation.
Ok, done for the day. I hope I'm not forgetting anything, but I should have done the following:
https://github.com/avh4/elm-color/pull/7
I hope nothing is too bikesheddy! If anything seems that way, it's just that I'm in the habit of changing things immediately, as I come across them.
Cheers
I'm picking this up again, starting with merging 2mol's PR and adding tests for the conversions added there, and then finishing fromHex
.
I'm moving the HSL work to a separate branch (#8), since it seems like it will be a bit of work to get the conversion accurate.
I'm done working on this for tonight. Remaining work is to finish fromHex
, (and the HSL conversions were moved to #8 )
I'm picking this up again to finish fromHex
Merging to dev-1.0.0
branch -- further comments can go to #9
Collaborating on this PR:
basic-conversions
)To include the following from the detailed discussion at #4:
fromRgba : { red : Float, green : Float, blue : Float, alpha : Float } -> Color
rgb255 : Int -> Int -> Int -> Color
rgb : Float -> Float -> Float -> Color
rgba : Float -> Float -> Float -> Float -> Color
toRgba : Color -> { red : Float, green : Float, blue : Float, alpha : Float }
toHex : Color -> { hex : String, alpha : Float }
fromHex : String -> Color