Iris is used to get colors from images. It can get vibrant colors, muted colors, etc.
It's a pure Java port of the Android Palette library with no external dependencies. See the Android Palette Docs for more information on what Palette does.
You can use Palette directly (again, see the Palette docs for more info).
There is also an Iris class that has some commonly used functions:
getColor(BufferedImage image, String defaultColor)
tries to get the most vibrant color from image
. If there isn't one, it tries to get a muted color. If it can't do that either, it returns defaultColor
.
getColor(String url, String defaultColor)
gets an image from a URL and calls the above method.
Apache 2.0