blenderskool / pigmnts

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

Sort based on dominance #3

Closed blenderskool closed 4 years ago

blenderskool commented 4 years ago

The generated colors could be sorted based on its dominance in the image. Or even better, return the colors along with their dominance as a percentage.

blenderskool commented 4 years ago

Results aren't sorted based on dominance, they are just provided in the result for every color in the palette. This is because sorting can be done based on different factors such as brightness, dominance, etc. as per the use case.