//Karin Lindstrom, IAP 368, Assignment: Make a Solar System import krister.Ess.*; AudioChannel SpaceOdd; PImage stars; float a = 0.0; void setup() { size(500, 500, P3D); noStroke(); Ess.start(this); SpaceOdd = new AudioChannel("windy_breath_long.aif"); SpaceOdd.play(1); stars = loadImage("stars.jpg"); } void draw() { background(stars); directionalLight(174, 185, 94 , 1, 1, 1); SolarSystem(); camera(0, 0, mouseX, // eyeX, eyeY, eyeZ 250.0, 250.0, 250.0, // centerX, centerY, centerZ 0.0, 1.0, .0); // upX, upY, upZ } void SolarSystem() { //Sun pushMatrix(); fill(#EAFF0D); translate(250,250,250); sphere(60); popMatrix(); //Mercury pushMatrix(); fill(#7C7373); translate(330,250,230); sphere(10); popMatrix(); //Venus pushMatrix(); fill(#D87F09); translate(250,250,340); sphere(20); popMatrix(); //Earth pushMatrix(); fill(#0C259B); translate(190,250,190); sphere(18); popMatrix(); //Mars pushMatrix(); fill(#CBA91D); translate(310,250,350); sphere(8); popMatrix(); //Jupiter pushMatrix(); fill(#B77F39); translate(85,250,340); sphere(50); popMatrix(); //Saturn pushMatrix(); fill(#2E9310); translate(410,250,180); sphere(40); popMatrix(); //Uranus pushMatrix(); fill(#529EE8); translate(295,250,100); sphere(30); popMatrix(); //Neptune pushMatrix(); fill(#52D0E8); translate(75,250,190); sphere(25); popMatrix(); //Pluto pushMatrix(); fill(#5F3014); translate(490,250,320); sphere(5); popMatrix(); }