[go: up one dir, main page]

Skip to content

Infinity/Iris

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published

Languages