# P\_4\_3\_1\_02 Image

**URL:** <https://discourse.processing.org/t/p-4-3-1-02-image/34039>\
**Category:** Coding Questions\
**Created:** [December 10, 2021, 5:31pm UTC](https://discourse.processing.org/t/p-4-3-1-02-image/34039 "2021-12-10T17:31:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![asymmetric](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/asymmetric/32/16577_2.png) [@asymmetric](https://discourse.processing.org/u/asymmetric)\
**Post date:** [December 10, 2021, 5:31pm UTC](https://discourse.processing.org/t/p-4-3-1-02-image/34039/1 "2021-12-10T17:31:25Z")

</div>

> please format code with \</\> button \* [homework policy](https://discourse.processing.org/faq/#homework) \* [asking questions](https://discourse.processing.org/t/2147)

Hi Processing community!

I would like to upload a photograph from my computer to interact with the code that is provided for P\_4\_3\_1\_02. How would I go about doing so? I tried simply replacing the following code, but it does not work. Do I need to download the processing program in order do this action?

var img;

function preload() {  
img = loadImage(‘tumblr\_o9wzlmSkbU1v49mloo1\_1280.jpg’);  
}

Thank you! I look forward to learning from you all!

---

<div class="post-metadata">

**Author:** ![josephh](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/josephh/32/210_2.png) [@josephh](https://discourse.processing.org/u/josephh)\
**Post date:** [December 10, 2021, 10:14pm UTC](https://discourse.processing.org/t/p-4-3-1-02-image/34039/2 "2021-12-10T22:14:11Z")

</div>

Hi @asymmetric,

Welcome to the forum! 😉

Can you explain what `P_4_3_1_02` is? I saw that it was a generative piece of code but you can give a link or say what it does.

> [@asymmetric](#):
>
> I tried simply replacing the following code,

Which code are you talking about?

> [@asymmetric](#):
>
> Do I need to download the processing program in order do this action?

A Processing program is simply text since it’s code. You can just copy it and paste it in the Processing editor to run it.

And I think that you are mixing things up, the code you provided is using JavaScript and therefore it’s using the web version of Processing which is p5.js
