void setup() { size(400, 400); background(0, 0, 255); smooth(); noStroke(); } void draw() { fill(255); drawStar(random(width), random(height)); fill(255, 0, 0, 50); drawRandomStripe(); fill(0, 0, 255, 50); drawRandomStripe(); } void drawRandomStripe() { float y = random(height); rect(0, y, width, 10); } void drawStar(float x, float y) { triangle(x, y, x, y + 20, x - 10, y + 30); triangle(x, y, x, y + 20, x + 10, y + 30); triangle(x - 15, y + 10, x + 15, y + 10, x, y + 20); }