HarshilShah / ChromaKit

Swift APIs to create colours in the Lch, Lab, Oklch, and Oklab colour spaces
MIT License
28 stars 2 forks source link

Conversion from RGB to LCH #1

Open metasidd opened 3 months ago

metasidd commented 3 months ago

Hey Harshil,

Love this library, its enabling me to play around in this space and create more accessible palettes. I tried going through the repo, but I couldn't find a way to convert an existing Color to an LCH or an LAB equivalent. Thoughts?

Siddhant

HarshilShah commented 3 months ago

Hey Siddhant, thanks for checking out the library! Conversions from Color (or at least Color.Resolved) are definitely on the roadmap! Part of me was just waiting for WWDC to see if Apple had anything to say here, but it looks like so, so yeah I'm definitely gonna be working on that soon!