I got my sketch.java file, and I can call
circle(100, 100, 10); just fine in there. However, when I go to my Particle.java, I call
circle(100, 100, 10);, I get errors.
First, this is my import:
import processing.core.*; This does not work, I must extend my class to PApplet.
I extend it, but why do I need to extend it, when in sketch.java already extends it and runs the main app?
I extended it anyway, and I was allowed to use
circle(100, 100, 10);, but when I compiled and ran it, I got an error:
java.lang.NullPointerException at processing.core.PApplet.circle(PApplet.java:12300)
So I am really confused why I can’t call circle() in another class. How am I supposed to be doing it?