This is a Java port of the Android Support Palette library to work outside the Android ecosystem.
From the Android support pages -
Good visual design is essential for a successful app, and color schemes are a primary component of design. The palette library is a support library that extracts prominent colors from images to help you create visually engaging apps.
Figure - An example image and its extracted color profiles given the default maximum color count (16) for the palette.
To install from Maven Central:
<dependency>
<groupId>com.github.trickl</groupId>
<artifactId>palette</artifactId>
<version>0.1.1</version>
</dependency>See the Junit tests for usage
To download the library into a folder called "palette" run
git clone https://github.com/trickl/palette.git
To build the library run
mvn clean build
- The original API for Android - https://developer.android.com/training/material/palette-colors
