Package org.dreambot.api.utilities
Class ColorPicker
- java.lang.Object
-
- org.dreambot.api.utilities.ColorPicker
-
public class ColorPicker extends java.lang.Object
Created by Pandemic
-
-
Constructor Summary
Constructors Constructor Description ColorPicker()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.awt.Color
getColorAt(int x, int y)
static boolean
isColor(int x, int y, java.awt.Color color)
Checks if the color at the provided point matches the color providedstatic boolean
isColor(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)
-
-