# Check x&y when they are the correct color

**URL:** <https://discourse.processing.org/t/check-x-y-when-they-are-the-correct-color/30830>\
**Category:** Coding Questions\
**Created:** [June 21, 2021, 8:27am UTC](https://discourse.processing.org/t/check-x-y-when-they-are-the-correct-color/30830 "2021-06-21T08:27:35Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)\
**Post date:** [June 21, 2021, 10:41am UTC](https://discourse.processing.org/t/check-x-y-when-they-are-the-correct-color/30830/3 "2021-06-21T10:41:29Z")

</div>

Hello @MoonAlien822,

I looks like you are continuing this topic:

> [@ScreenCapture with Robot Class (code not working)](https://discourse.processing.org/t/screencapture-with-robot-class-code-not-working/30551):
>
> i have an irl card that has the rgb value:11, 96, 133. i made a code that, scans the screen for that color so when you have the app camera open it says kaart gevonden (found card in dutch) on the screen. but it is not working, any ideas why? here is the code int x=1; int y=1; import java.awt.Robot; import java.awt.image.BufferedImage; import java.awt.Rectangle; color pas = color(11, 96, 133); Robot robot; void setup() { size(1500, 3000); try { robot = new Robot(); } catch (Ex…

`:)`

---

_[View the full topic](https://discourse.processing.org/t/check-x-y-when-they-are-the-correct-color/30830)._
