You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There exists another library on Rust, lab, that has a Lab struct nearly identical to palettes, the main difference being the L*a*b* parameters are f32's rather than generic types and there is no white_point. The same also applies to the LCh struct. I would like to be able to use this struct over the one palette provides, if possible. Cheers.
The text was updated successfully, but these errors were encountered:
In the meantime to get up and running, you could wrap it in a newtype then copy the current Lab implementation. But that's obviously cumbersome and not ideal.
As for LCh, I didn't implement it originally because the results end up being the same as Lab, it's just a different representation of the same space. It ends up slower because you now have to do 2 extra conversions of Lab->LCh->Lab. You can just convert the resulting Lab centroids to LCh after the fact.
There exists another library on Rust,
lab
, that has aLab
struct nearly identical topalette
s, the main difference being the L*a*b* parameters aref32
's rather than generic types and there is nowhite_point
. The same also applies to theLCh
struct. I would like to be able to use this struct over the onepalette
provides, if possible. Cheers.The text was updated successfully, but these errors were encountered: