# Find the color of a pixel

**URL:** <https://discourse.processing.org/t/find-the-color-of-a-pixel/36558>\
**Category:** Coding Questions\
**Created:** [April 23, 2022, 11:05pm UTC](https://discourse.processing.org/t/find-the-color-of-a-pixel/36558 "2022-04-23T23:05:09Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![jafal](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jafal/32/19112_2.png) [@jafal](https://discourse.processing.org/u/jafal)\
**Post date:** [April 24, 2022, 12:36am UTC](https://discourse.processing.org/t/find-the-color-of-a-pixel/36558/2 "2022-04-24T00:36:22Z")

</div>

Hi

Show your attempt and see this link

> **[p5.js Web Editor](https://editor.p5js.org/slow_izzm/sketches/BH9g3TB_E)**
>
> A web editor for p5.js, a JavaScript library with the goal of making coding accessible to artists, designers, educators, and beginners.

> [@Finding the color of a pixel](https://discourse.processing.org/t/finding-the-color-of-a-pixel/36555):
>
> Blockquote In previous versions of Processing, I could find the color of a pixel using get(x,y) But in P5js get(x,y) gives me something like [146, 200 150, 255] What I need is some way to check that the location is the background color, so I can draw rectangles or ellipses that do not overlap, like this: Blockquote [http://hermitdog.com/2022/March%2016%202022.jpg](http://hermitdog.com/2022/March%2016%202022.jpg)

---

_[View the full topic](https://discourse.processing.org/t/find-the-color-of-a-pixel/36558)._
