var drawBackground = function() { background(0, 0, 25); for(var i = 0; i < 400; i++) { strokeWeight(2.5); stroke(255, 255, 255); point(random(0, 400), random(0, 400)); } }; drawBackground(); var drawPlanet = function() { translate(200, 200); rotate(-15); strokeWeight(10); stroke(150, 150, 150); noFill(); arc(0, 0, 225, 75, 180, 360); noStroke(); fill(200, 150, 0); ellipse(0, 0, 125, 125); noFill(); stroke(150, 150, 150); strokeWeight(10); arc(0, 0, 225, 75, 0, 180); }; drawPlanet();