Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- robot = new Robot(GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice());
- System.out.println(robot.getPixelColor(
- (int) MouseInfo.getPointerInfo().getLocation().getX() + 10,
- (int) MouseInfo.getPointerInfo().getLocation().getY() + 10
- ));
- java.awt.Color[r=0,g=0,b=0]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement