Say if red = 200 and green = 190 and blue = 210 then where the mouse is
my problem is that red, green and blue can change each time but they will always be close to eachother ex. red=230,blue=250,green=240
I want to create an if statement that has a range
if (color.getRed()== 131 && color.getGreen() == 115 && color.getBlue() == 91)
{
robot.mousePress(MouseEvent.BUTTON1_MASK);
robot.mouseRelease(MouseEvent.BUTTON1_MASK);
System.out.println("click");
}
so if red green and blue are separated by like 20 points it does what's in the brackets.