It looks like you're mixing "active" and "static" modes

Hello, complete begginer here.

Just making my way through some tutorials and i’ve been hit with the error (the subject title). I know it’s defining static and active states, which can’t be both at the same time. But i can’t see what is going wrong?

Thank you in advance!

void setup() {
  size(500, 500);
  frameRate(2);
}

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

Hello,

I did not get any errors with the code you posted.

Try a new sketch and use the code you posted here.

Maybe you had some extra characters or code somewhere in original.

:)

1 Like

Thank you glv!

I started a new sketch and it all seems to work. Not sure why it was resulting in an error, but I guess that’s what I should continue to expect on this new path of learning haha.

2 Likes

one reason is when you - like me very often - write a method but forget to say what it returns…

 someMethod () {}

gives you that error.

void someMethod() {
  }

would define a method (void tells us it does not return a value)

someMethod ();

would call that method.

so the first thingy is mixing those two in a way that processing things is tasteless :slight_smile:

2 Likes