Package org.dreambot.api.utilities
Class ColorPicker
- java.lang.Object
-
- org.dreambot.api.utilities.ColorPicker
-
public class ColorPicker extends java.lang.ObjectCreated by Pandemic
-
-
Constructor Summary
Constructors Constructor Description ColorPicker()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.awt.ColorgetColorAt(int x, int y)static booleanisColor(int x, int y, java.awt.Color color)Checks if the color at the provided point matches the color providedstatic booleanisColor(int x, int y, java.awt.Color color, int discrepancy)Checks if the color at the provided point matches the color provided
-
-
-
Method Detail
-
isColor
public static boolean isColor(int x, int y, java.awt.Color color)Checks if the color at the provided point matches the color provided- Parameters:
x- The x coordinatey- The y coordinatecolor- The color you'd like to match- Returns:
- True if the color is the same
-
isColor
public static boolean isColor(int x, int y, java.awt.Color color, int discrepancy)Checks if the color at the provided point matches the color provided- Parameters:
x- The x coordinatey- The y coordinatecolor- The color you'd like to matchdiscrepancy- Available difference in color value- Returns:
- True if the color is within discrepency
-
getColorAt
public static java.awt.Color getColorAt(int x, int y)
-
-