# Size() not working

**URL:** <https://discourse.processing.org/t/size-not-working/17660>\
**Category:** Processing\
**Created:** [February 9, 2020, 11:15am UTC](https://discourse.processing.org/t/size-not-working/17660 "2020-02-09T11:15:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![aradeea](https://avatars.discourse-cdn.com/v4/letter/a/e495f1/32.png) [@aradeea](https://discourse.processing.org/u/aradeea)\
**Post date:** [February 9, 2020, 11:15am UTC](https://discourse.processing.org/t/size-not-working/17660/1 "2020-02-09T11:15:05Z")

</div>

Hi there,

I’m having problems with size(), it doesn’t work in any sketch. I have even tried to put in on settings() but it doesn’t work either. I have tried Processing 3.5.3 and 3.5.4.

```auto
void setup(){
  size(100,100);
}

void draw(){
  background(0);
}

```

---

<div class="post-metadata">

**Author:** ![bucherjo](https://avatars.discourse-cdn.com/v4/letter/b/848f3c/32.png) [@bucherjo](https://discourse.processing.org/u/bucherjo)\
**Post date:** [February 9, 2020, 11:34am UTC](https://discourse.processing.org/t/size-not-working/17660/2 "2020-02-09T11:34:24Z")

</div>

Are there any error messages that might give a hint where the problem could be?

---

<div class="post-metadata">

**Author:** ![bucherjo](https://avatars.discourse-cdn.com/v4/letter/b/848f3c/32.png) [@bucherjo](https://discourse.processing.org/u/bucherjo)\
**Post date:** [February 9, 2020, 1:18pm UTC](https://discourse.processing.org/t/size-not-working/17660/3 "2020-02-09T13:18:18Z")

</div>

Notice that the standard size of a processing sketch is 100x100 pixels, so you can’t see a difference between a

```auto
void setup(){
//empty
}

```

and a

```auto
void setup(){
size(100,100);
}

```

setup code.

---

<div class="post-metadata">

**Author:** ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)\
**Post date:** [February 11, 2020, 3:41pm UTC](https://discourse.processing.org/t/size-not-working/17660/4 "2020-02-11T15:41:14Z")

</div>

Notice also that the minimum size of a window itself may be larger than the smallest canvas.

So size(600,300) and size(300,600) should be obviously different, but if your minimum window frame is 200 then size(150,150) and size(100,100) will only look different subtley – the gray background canvas area in the center of the window will change size.
