thephpleague / color-extractor

Extract colors from an image like a human would do.
thephpleague.com
MIT License
1.3k stars 159 forks source link

Map int result to strings. #63

Closed alexvais closed 2 years ago

alexvais commented 4 years ago

Hi,

I want to map the Int result that give me this library to for example:

red green back white

To create a basic filter of image main color. covering all the range of colors.

How can i do it?

katesaikishore commented 3 years ago

Yeah expecting the same from here? @alexvais Got any solution?

MatTheCat commented 2 years ago

You can look at https://github.com/thephpleague/color-extractor/blob/3336395cb0396ddb6cc2f3a2b13b28682ed484ed/src/League/ColorExtractor/Color.php#L33 to extract red, green and blue component.