thephpleague / color-extractor

Extract colors from an image like a human would do.

Home Page:thephpleague.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Map int result to strings.

alexvais opened this issue · comments

commented

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?

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

You can look at

public static function fromIntToRgb($color)
to extract red, green and blue component.