I need to scan the screen for a specific image/color and return an x and y coordinate for where that color occurs.
I know that this will probably include taking a screenshot using the Robot class, but have no idea how to then scan that image appropriately.
If you take a screenshot with the Robot class, you get an object of the class BuffereImage. Then you for loop the width and height (getWidth(), getHeight()). With the getRGB() method you can extract the RGB value of the pixel. If it matches, you can store it in aan collection or array.