Skip to content

Latest commit

 

History

History
22 lines (13 loc) · 681 Bytes

README.md

File metadata and controls

22 lines (13 loc) · 681 Bytes

ChromaLib

Logo

A Java library created to make color-identification easier & simpler for screen-bots. Streamlines and removes the need of juggling between Java's Color, BufferedImage, and Robot classes.

Currently a work in progress.

Usage

  • getColor(int x, int y) // Returns integer representation of color

  • getRGBAry(int x, int y) // Returns an integer array containing RGB values of the pixel

  • getHSB(int x, int y) // Returns a float array containing HSB values of the pixel

  • isWhite(int x, int y) // Returns a boolean

Examples

Bejeweled Solver

ToDo

  • Identify dominant color in pixel range