blenderskool / pigmnts

🎨 Color palette generator from an image using WebAssesmbly and Rust
https://pigmnts.web.app
MIT License
73 stars 4 forks source link

Try L*ab color space #4

Closed blenderskool closed 4 years ago

blenderskool commented 4 years ago

L*ab color space resembles humans' perception of colors. It may give better results compared to RGBA.

blenderskool commented 4 years ago

The final step involves the conversion of L*ab color space palette to RGB color space palette, hence some information is lost in the output. L*ab is useful in the intermediate steps and can be used for weight calculation or sorting of the colors in the palette based on some parameter which is easier to calculate from L*ab space compared to RGB space.