# Void error what is wrong?

**URL:** https://discourse.processing.org/t/void-error-what-is-wrong/35030
**Category:** Processing
**Tags:** homework
**Created:** [February 7, 2022, 6:46pm UTC](https://discourse.processing.org/t/void-error-what-is-wrong/35030 "2022-02-07T18:46:24Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![SharkJulen](https://avatars.discourse-cdn.com/v4/letter/s/2acd7d/32.png) [@SharkJulen](https://discourse.processing.org/u/SharkJulen)
#### Post date: [February 7, 2022, 6:46pm UTC](https://discourse.processing.org/t/void-error-what-is-wrong/35030/1 "2022-02-07T18:46:24Z")

</div>

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

int y=290;  
int z=2;  
PImage pista1;  
PImage chico2;  
int contador=0;  
int x=0;  
int y=0;  
boolean clic=false  
void setup(){  
size(600,400);  
pista1=loadImage(“pista1.jpg”);  
chico2=loadImage(“chico2.jpg”);  
}  
void draw(){  
pista1.resize(600,400);  
background(pista1);  
fill(255);  
text(“Julen Pérez Arbe”,250,15);  
fill(255,140,0);  
ellipse(mouseX+115,y,30,30);  
chico2.resize(150,235);  
image(chico2,mouseX,165);  
y=y+z;  
if(y\>380){  
z=-2;  
}  
if(y\<290){  
z=+2;  
}  
fill(255);  
text(contador,15,20);  
if(clic){  
contador=contador+2;  
}  
for(x=0;x\<=600;x=x+10){  
fill(255);  
line(x,380,x,400);  
}  
}  
void mousePressed(){  
if(mouseX\>450 && mouseX\<550){  
clic=!clic;  
}  
}  
Sintax error - Error in “void”

---

<div class="post-metadata">

### Author: ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)
#### Post date: [February 7, 2022, 6:54pm UTC](https://discourse.processing.org/t/void-error-what-is-wrong/35030/2 "2022-02-07T18:54:07Z")

</div>

Please post the code again

- Before posting remember to hit **ctrl-t** for auto-format

- Then post

- Select the code and hit **ctrl-e** in the forum (or in the command bar `</>`)

---

<div class="post-metadata">

### Author: ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)
#### Post date: [February 7, 2022, 6:56pm UTC](https://discourse.processing.org/t/void-error-what-is-wrong/35030/3 "2022-02-07T18:56:07Z")

</div>

> [@SharkJulen](#):
>
> boolean clic=false

missing `;` semicolon after this line - found it

---

<div class="post-metadata">

### Author: ![SharkJulen](https://avatars.discourse-cdn.com/v4/letter/s/2acd7d/32.png) [@SharkJulen](https://discourse.processing.org/u/SharkJulen)
#### Post date: [February 7, 2022, 8:20pm UTC](https://discourse.processing.org/t/void-error-what-is-wrong/35030/4 "2022-02-07T20:20:01Z")

</div>

And how can i get a no background child photo to introduce?

---

<div class="post-metadata">

### Author: ![SharkJulen](https://avatars.discourse-cdn.com/v4/letter/s/2acd7d/32.png) [@SharkJulen](https://discourse.processing.org/u/SharkJulen)
#### Post date: [February 7, 2022, 8:20pm UTC](https://discourse.processing.org/t/void-error-what-is-wrong/35030/5 "2022-02-07T20:20:34Z")

</div>

I mean i find some jpg but none of them removes the grey and white squares background

---

<div class="post-metadata">

### Author: ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)
#### Post date: [February 7, 2022, 9:38pm UTC](https://discourse.processing.org/t/void-error-what-is-wrong/35030/6 "2022-02-07T21:38:15Z")

</div>

Unclear what you mean

Ah, I think you have to save the image without background as a png (in a suitable program) and try to open this

> **[Transparent Background: Remove the Background From Images or Logos](https://www.causevox.com/blog/using-the-right-logo-image-transparent-png/)**
>
> Make a transparent background PNG with free step by step instructions on how to remove a background in Adobe Photoshop, Canva, and other image editing tools.
