# Uploading image, and changing a specific color if it is present

**URL:** <https://discourse.processing.org/t/uploading-image-and-changing-a-specific-color-if-it-is-present/39063>\
**Category:** Coding Questions\
**Created:** [October 3, 2022, 9:23pm UTC](https://discourse.processing.org/t/uploading-image-and-changing-a-specific-color-if-it-is-present/39063 "2022-10-03T21:23:48Z")\
**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:** [October 3, 2022, 9:41pm UTC](https://discourse.processing.org/t/uploading-image-and-changing-a-specific-color-if-it-is-present/39063/2 "2022-10-03T21:41:44Z")

</div>

Hello @blackhatProphet,

> [@blackhatProphet](#):
>
> could I upload an image and then scan to see if, for example, the color yellow (or an rgb spectrum of yellow values?) was present somewhere in this given image and if it was change it to the color blue

You certainly can!

There are resources (tutorials, references, examples) here:

> **[Welcome to Processing!](https://processing.org)**
>
> Processing is a flexible software sketchbook and a language for learning how to code. Since 2001, Processing has promoted software literacy within the visual arts and visual literacy within technology…

Take a look here:

> **[Images and Pixels](https://processing.org/tutorials/pixels/)**
>
> How to load and display images as well as access their pixels.

A topic with some references that may be of interest:

> [@How to copy clipped rect of an image to another filename?](https://discourse.processing.org/t/how-to-copy-clipped-rect-of-an-image-to-another-filename/39054/8):
>
> Hello, You certainly will! References: [PImage / Reference / Processing.org](https://processing.org/reference/PImage.html) \< get() and save() for a PImage are in there! There are two references for get(): [https://processing.org/reference/get\_.html](https://processing.org/reference/get_.html) \< Use for image on sketch canvas! [https://processing.org/reference/PImage\_get\_.html](https://processing.org/reference/PImage_get_.html) \< Use for PImage directly! If you want to explore further there is a tutorial on Images and Pixels and Render Techniques slight_smile

`:)`

---

_[View the full topic](https://discourse.processing.org/t/uploading-image-and-changing-a-specific-color-if-it-is-present/39063)._
