Digital Bauhaus Vorkurs/Projekte/Kleckse/Eigene Kleckse: Difference between revisions

From Medien Wiki
(Created page with "void setup () { size ( 600, 400); noStroke(); smooth(); background(131, 111, 255); } void draw() { if(mousePressed) { noStroke(); fill(240, 128, 128); } ...")
 
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<source lang="Java">
void setup () {
void setup () {
   size ( 600, 400);
   size ( 600, 400);
Line 31: Line 33:
    
    
}
}
</source>

Latest revision as of 09:53, 27 April 2011

void setup () {
  size ( 600, 400);
  noStroke();
  smooth();
  background(131, 111, 255);
}

void draw() {
  if(mousePressed) {
     noStroke();
     fill(240, 128, 128); 
  }
  ellipse  (132, 82, mouseX, mouseY);
  ellipse  (228, -16, mouseX, mouseY);
  
  if(mousePressed) {
    noStroke();
    fill(120, 130, 200, 9);
  }
  
  ellipse  (mouseX, mouseY, 132, 82);
  ellipse  (228, -16, mouseX, mouseY);
  
  if(mousePressed) {
    noStroke();
    fill(220, 150, 53, 9);
   
  }
  ellipse  (mouseX, mouseY, 132, 82);
  ellipse  (228, -16, mouseX, mouseY);
  
}