Drawing array of curves from PVector

Thank you again so much :slight_smile:
I am shy to ask more, you already helped a lot…

But I guess, if you say

Then my main question is how can I put data from particles.add into run() function, without adding new particles?
I guess the answer is somewhere in using “.this”?

class ParticleSystem {

  ArrayList<Particle> particles;    // An arraylist for all the particles
  PVector origin;    // An origin point for where particles are birthed
  FloatList xx;
  FloatList yy;

  ParticleSystem(int num, PVector v) {
    particles = new ArrayList<Particle>();   // Initialize the arraylist
    origin = v.copy();            // Store the origin point
    xx = new FloatList();
    yy = new FloatList();
    
    for (int i = 0; i < num; i++) {
      particles.add(new Particle(origin));    // Add "num" amount of particles to the arraylist
    }
  }


  void run() {
// Use origins of created particles here, witout creating new particles??
}