import noc.*; PImage material; int r = 200; float spin = 0f; float tilt = -0.65f; Country[] countries; // Declare a births particle system ParticleSystem[] ps; void setup() { size(1280, 800, P3D); material = loadImage("earth_lights.jpg"); texturedSphereDetail(12); // Load text file as a String String[] data = loadStrings("countries_births.txt"); countries = new Country[data.length]; ps = new ParticleSystem[data.length]; //Convert the country string into an array using ',' as a delimiter and create all countries for (int i=0; i TWO_PI) spin = 0.0; rotateX(tilt); rotateY(spin); noStroke(); texturedSphere(r, material); // Run the birth particle system for (int j=0; j<223; j++) { stroke(j+60,j*2,j*60); ps[j].run(); ps[j].addParticle(); } }