# Size(); not working for me / Processing 3.5

**URL:** <https://discourse.processing.org/t/size-not-working-for-me-processing-3-5/7688>\
**Category:** Processing\
**Created:** [January 21, 2019, 3:09am UTC](https://discourse.processing.org/t/size-not-working-for-me-processing-3-5/7688 "2019-01-21T03:09:39Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![kll](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kll/32/964_2.png) [@kll](https://discourse.processing.org/u/kll)\
**Post date:** [January 21, 2019, 4:27am UTC](https://discourse.processing.org/t/size-not-working-for-me-processing-3-5/7688/4 "2019-01-21T04:27:23Z")

</div>

> **[settings() / Reference](https://processing.org/reference/settings_.html)**
>
> The settings() function is new with Processing 3.0. It's not needed in most sketches. It's only useful when it's absolutely necessary to define the parameters to size() with a variable. …

> **[setup() / Reference](https://processing.org/reference/setup_.html)**
>
> The setup() function is run once, when the program starts. It's used to define initial environment properties such as screen size and to load media such as images and fonts as the program start…

that are

> Updated on January 20, 2019 05:42:15pm EST

but nothing mentioned like that.  
until now the settings() was usable but only NEEDED  
for eclipse? ( as the above reference states )

can not test on Raspberry Pi RASPBIAN linux until available,  
but on win 7 64bit and right

```auto
int diam=200;

// used for eclipse and mandatory at rev 3.5 ???
void settings() {
   size(200,200); 
}

void setup() {
// size(200,200);
  stroke(200,0,0);
  fill(0,200,0);
}

void draw() {
  background(200,200,0);
  ellipse(width/2,height/2,diam,diam);
}

void mousePressed() {
  diam=mouseX;
}

```

or just a bug what might be fixed, as so much documentation and  
millions of user sketches would needed to be changed??

[https://raw.githubusercontent.com/processing/processing/master/build/shared/revisions.txt](https://raw.githubusercontent.com/processing/processing/master/build/shared/revisions.txt)  
does not indicate that that is a wanted change!

* * *

would be nice if there could be a UPDATE STICKY here at the forum  
that 3.5 now available?

also a news info / or a BLOG with the new features / at

> **[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…

could help

* * *

more play with it:

```auto
// https://raw.githubusercontent.com/processing/processing/master/build/shared/revisions.txt

// here it is the update to : Processing 3.5
// starts with what i think is a bug that size() in setup() not work anymore
// only in settings() seems to work
// tested 21.1.2019 win7 64b // processing 3.5

int off=40, xw = 50, mywidth=300, myheight=300;

void settings() {
  size(mywidth,myheight);  
}

//void setup(){}

void draw() {
  background(200,200,0);
  // ____________________________________________ play new features v3.5
  push(); // incl. Matrix && Style
  fill(200,0,0);
  translate(width/2,height/2);
  circle(0,0,xw);
  pop();
  square(width/2+off,height/2+off,xw);
}

```

---

_[View the full topic](https://discourse.processing.org/t/size-not-working-for-me-processing-3-5/7688)._
