Closed avh4 closed 6 years ago
My thoughts at the moment:
I think the above are important to do quickly and make available and could be an initial release.
Beyond that, I think there are good questions about how best to handle other things like default colors, palettes, color manipulation, and alternate colorspaces. My thoughts at the moment:
Color.Palette.<Something>
for consistencyI agree with the direction of the discussion.
As per the other thread, a record type of floats for RGBA channels seems great. I'm unsure about making the type opaque or not. The tradeoff: If it's opaque, you can clamp the channels between 0 and 1 when you construct/convert a color value, so you can try to guarantee to never construct invalid colors. Plus you can at any time change the internal representation! I like this. But you lose a little bit of convenience and transparency.
To give my minimal list of what I think belongs into particular package:
For me, that already goes a long way.
There is now an API proposal for further discussion: https://github.com/avh4/elm-color/issues/4
But feel free to comment further on this issue, and I will monitor and incorporate it to the appropriate place.
I think everything here has been incorporated elsewhere.
Summary (will be updated throughout the discussion)
Questions to answer:
Use-cases