size/fullscreen()

When attempting the following code with size() or fullScreen() it fails and I get the noted console message .. ideas ? THX

LEDStrip Strip1;

void setup(){ fullScreen(); frameRate(30); background(0); }

void draw(){ Strip1 = new LEDStrip(0,0,196.8,0,300); }

Exception in thread "Animation Thread" java.lang.IllegalStateException: fullScreen() cannot be used here, see https://processing.org/reference/fullScreen_.html at processing.core.PApplet.insideSettings(PApplet.java:933) at processing.core.PApplet.fullScreen(PApplet.java:1831) at LEDStrip_Class.setup(LEDStrip_Class.java:65) at processing.core.PApplet.handleDraw(PApplet.java:2378) at processing.awt.PSurfaceAWT$12.callDraw(PSurfaceAWT.java:1527) at processing.core.PSurfaceNone$AnimationThread.run(PSurfaceNone.java:316)

Sign In or Register to comment.