elm / color

Standard representation of colors, encouraging sharing between packages.
BSD 3-Clause "New" or "Revised" License
24 stars 2 forks source link

Publishing timeline? #1

Open Libbum opened 6 years ago

Libbum commented 6 years ago

Have been updating a few packages and have hit a roadblock here since color has been removed from the core. Is there anything more that needs to be done with this guy before it gets put up on packages?

evancz commented 6 years ago

Can you share what you need it for? That can help me prioritize because I'm not sure if it will be in the same form it was before.

Libbum commented 6 years ago

Specifically pukkamustard/elm-identicon which uses the rgb and hsl converters. It's quite a small subset of requirements; so for now I could just generate a color submodule for elm-identicon and let you run free on the changes you have envisioned for this package. Does that sound like the best plan for the interim?

2mol commented 6 years ago

Hi! I need it for 2mol/elm-colormaps, which I wanted to upgrade to 0.19. But no rush, I'd be happy to help or discuss. I'm sure the role of color in elm-css or plotting libraries would also benefit from some considerations.

Could you share what you were thinking in terms of changing the form?

sch commented 6 years ago

I've used it in combination with the elm-color-extra package for projects in 0.18. It has functions for converting between colorspaces as well as blending, interpolating, and building gradients for colors.

That library is used in two of my projects — one for a closed-source codebase where we make heavy use of gradients, and one in an open-source project where it's used rather minimally for its colorToHex function.

bstro commented 6 years ago

I could be wrong, but it looks like style-elements relies on this package, so not being able to use this with 0.19 limits its usage with style-elements.

evancz commented 6 years ago

Can someone make a package like what they want? The old API is pretty simple. The new API is pretty simple. I do not think the math in this repo is complete or correct in all cases, and this is definitely not something where I have unique expertise on the topic. So I think it'd be better to not block just because this might exist someday.

Libbum commented 6 years ago

Sure, no problem. I can take that on. May be a few days before I can start work on it though. That is, unless someone else in this thread is keen?

If not, I'll ping you all later with what I've got so far and we can move further discussions to a new tracker.

2mol commented 6 years ago

Thanks @Libbum, let me know if you want some help with it.

2mol commented 6 years ago

For people that stumble across this: It might be worth pointing out that the efforts have moved to https://github.com/avh4/elm-color/issues/ where you can come comment and help with building a great standard-worthy colour module.