benfry / processing4

Processing 4.x releases for Java 17
https://processing.org
Other
1.31k stars 236 forks source link

having noSmooth(); in steup will trigger a duplicate settings() warning #823

Open clankill3r opened 4 months ago

clankill3r commented 4 months ago

Processing 4.3 Windows 10

I thought I was going crazy :)

void settings() {

}

void setup() {
  noSmooth();
}

Screenshot 2024-02-18 223447

JuzerNejm10 commented 4 months ago

Yeah, happened to me a couple of times with noSmooth() or smooth(). That must go into settings() . But, on the other hand, settings() are very restrictive, you cannot have eg. frameRate(), background(), stroke(), fill(), noCursor(), surface.setVisible() etc. in there - you'll get NullPointerException.