int W = 400; int numStars = 100; color sky = color(25,25,112); // We will write to a hypothetical 300x200 canvas, // but scale appropriately for other sizes float scale = W/300.0; size(W,int(200*scale)); background(sky); // insert stars here... stroke(255); strokeWeight(1*scale); for (int j=0; j