# Code not running

**URL:** https://discourse.processing.org/t/code-not-running/47217
**Category:** Processing
**Created:** [September 24, 2025, 5:37pm UTC](https://discourse.processing.org/t/code-not-running/47217 "2025-09-24T17:37:46Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![mewmew419](https://avatars.discourse-cdn.com/v4/letter/m/a88e57/32.png) [@mewmew419](https://discourse.processing.org/u/mewmew419)
#### Post date: [September 24, 2025, 5:37pm UTC](https://discourse.processing.org/t/code-not-running/47217/1 "2025-09-24T17:37:46Z")

</div>

so i just downloadd processing for school,i am not all too familiar with coding but everytime I click run, its a blank grey square canvas. how to fix this?

---

<div class="post-metadata">

### Author: ![bonner45](https://avatars.discourse-cdn.com/v4/letter/b/53a042/32.png) [@bonner45](https://discourse.processing.org/u/bonner45)
#### Post date: [September 24, 2025, 5:54pm UTC](https://discourse.processing.org/t/code-not-running/47217/2 "2025-09-24T17:54:51Z")

</div>

Welcome to the forum.

Please post you’re code in code tags using the \</\> button.

---

<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: [September 24, 2025, 7:09pm UTC](https://discourse.processing.org/t/code-not-running/47217/3 "2025-09-24T19:09:34Z")

</div>

Yeah start your Code (or your `setup()` function) with `size(800,600);`

Maybe that will help

---

<div class="post-metadata">

### Author: ![mewmew419](https://avatars.discourse-cdn.com/v4/letter/m/a88e57/32.png) [@mewmew419](https://discourse.processing.org/u/mewmew419)
#### Post date: [September 24, 2025, 7:26pm UTC](https://discourse.processing.org/t/code-not-running/47217/4 "2025-09-24T19:26:35Z")

</div>

Yes it did thank you

---

<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: [September 24, 2025, 8:58pm UTC](https://discourse.processing.org/t/code-not-running/47217/5 "2025-09-24T20:58:03Z")

</div>

I am glad to hear that.

And welcome to the forum, great to have you here!

**Example 1**

here is an example WITHOUT setup(), in so called static mode

```auto
size(640, 360); // Size should be the first statement

float y = 180;

background(0, 255, 0); // Set the background to Green

line(0, y,width, y);
line(100, y+66,width, y+66);

```

**Example 2**

and a complex Sketch with setup() and draw() which is a dynamic Sketch:

```auto

float y = 180;

// The statements in the setup() function
// run once when the program begins
void setup() {
  size(640, 360); // Size should be the first statement in setup()
  stroke(255); // Set stroke color to white
}

// The draw() function runs on and on
void draw() {
  background(0); // Set the background to black

  line(0, y, width, y);
  y = y - 1;
  if (y < 0) {
    y = height;
  }
}

```

Warm regards,

Chrisir

---

<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: [September 24, 2025, 11:01pm UTC](https://discourse.processing.org/t/code-not-running/47217/6 "2025-09-24T23:01:31Z")

</div>

> [@mewmew419](#):
>
> i am not all too familiar with coding but everytime I click run, its a blank grey square canvas. how to fix this?

If you did not enter any code or did not use `size()` this is the default output with a size of 100x100:

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/3X/6/5/6567a87778462c765c3aa1c1c5698558f841440b.png)

Keep working at it!

> **[Getting Started](https://processing.org/tutorials/gettingstarted/)**
>
> Welcome to Processing! This introduction covers the basics of writing Processing code.

`:)`
