Lösung 14.12-21.12

Aus QED-WIKI - Ein Berliner Mathe-WIKI von und für Schülerinnen und Schüler
Version vom 21. Dezember 2012, 18:11 Uhr von Erdmännchen (Diskussion | Beiträge)

(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)
Wechseln zu: Navigation, Suche

int Blume = 100;

int Gras = 0;

void setup() {

 size(screen.width,screen.height);
 background(150,150,255);
 smooth();

}

void draw() {

 stroke(0,255,0);
 strokeWeight(5);
 line(Gras,screen.height-200,Gras,screen.height);
 stroke(0,200,0);
 
 strokeWeight(10);                                    //Blume
 line(Blume,screen.height-400,Blume,screen.height);   //Blume
 strokeWeight(50);                                    //Blume
 point(Blume-15,screen.height-250);                   //Blume
 point(Blume+15,screen.height-250);                   //Blume
 stroke(255,255,0);                                   //Blume
 strokeWeight(20);                                    //Blume
 point(Blume-15,screen.height-415);                   //Blume
 point(Blume,screen.height-415);                      //Blume
 point(Blume+15,screen.height-415);                   //Blume
 point(Blume+15,screen.height-400);                   //Blume
 point(Blume+15,screen.height-385);                   //Blume
 point(Blume,screen.height-385);                      //Blume
 point(Blume-15,screen.height-385);                   //Blume
 point(Blume-15,screen.height-400);                   //Blume
 stroke(85,45,15);                                    //Blume
 strokeWeight(30);                                    //Blume
 point(Blume,screen.height-400);                      //Blume
 
 stroke(255,255,0);                                   //Sonne
 strokeWeight(500);                                   //Sonne
 point(0,0);                                          //Sonne
 stroke(255);                                         //Wolke
 strokeWeight(100);                                   //Wolke
 point(500,200);                                      //Wolke
 point(550,200);                                      //Wolke
 point(600,200);                                      //Wolke
 point(650,200);                                      //Wolke
 point(700,200);                                      //Wolke
 point(500,250);                                      //Wolke
 point(550,250);                                      //Wolke
 point(600,250);                                      //Wolke
 point(650,250);                                      //Wolke
 point(700,250);                                      //Wolke
 
 Blume = Blume + 100;
 Gras = Gras + 10;

}