Oh yeah, either define them variables in the function or outside it:
PSurfaceFX surface;
Canvas canvas;
Scene scene;
Stage stage;
You’ll have to include the relevant imports too.
Oh yeah, either define them variables in the function or outside it:
PSurfaceFX surface;
Canvas canvas;
Scene scene;
Stage stage;
You’ll have to include the relevant imports too.