# How to find a colour on the screen?

**URL:** <https://discourse.processing.org/t/how-to-find-a-colour-on-the-screen/30405>\
**Category:** Coding Questions\
**Created:** [June 1, 2021, 5:31am UTC](https://discourse.processing.org/t/how-to-find-a-colour-on-the-screen/30405 "2021-06-01T05:31:31Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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 1, 2021, 5:55am UTC](https://discourse.processing.org/t/how-to-find-a-colour-on-the-screen/30405/2 "2021-06-01T05:55:57Z")

</div>

Hello,

Please format your code as per:  
[https://discourse.processing.org/faq#format-your-code](https://discourse.processing.org/faq#format-your-code)

This is the same code as you provided here:  
[https://discourse.processing.org/t/help-with-error-in-robot-class-and-createscreencapture-method/30396/1](https://discourse.processing.org/t/help-with-error-in-robot-class-and-createscreencapture-method/30396/1)

_ **I provided you with a link in the topic above to a working example that you can modify to get a PImage of the screen.** _

Please correct your code and then take the next step.

Once you get a PImage you can use get():  
[https://processing.org/reference/get\_.html](https://processing.org/reference/get_.html)

See tutorial:  
[https://processing.org/tutorials/pixels/](https://processing.org/tutorials/pixels/) _Intro To Image Processing_ section has a good example to work with!  
[https://processing.org/tutorials/color/](https://processing.org/tutorials/color/)

`:)`

---

_[View the full topic](https://discourse.processing.org/t/how-to-find-a-colour-on-the-screen/30405)._
