Skip to content

Latest commit

 

History

History
22 lines (12 loc) · 976 Bytes

README.md

File metadata and controls

22 lines (12 loc) · 976 Bytes

Iris

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.

Usage

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.

License

Apache 2.0