How to create array from a class constuctor?
问题 So basically I have a class with my program and it's constructing rain elements for my animation. I was wondering how can I use arrays to create say 50 objects from this class but at the same time alternate the data in the objects. void setup() { size (400,400); noStroke(); rain = new Rain(20,random(0,10),3,15); rain2 = new Rain(random(15,35), random(70,110),3,15); } void draw() { background(0); rain.colour(125,155,100); rain.display(); rain2.colour(125,155,100); rain2.display(); } This is