Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
void setup()
{
  size(300,300);
  smooth();
  stroke(255,255,255);
  noFill();
}
 
void draw()
{
  background(0);
 
  bommel(100,10,140,50);
  bommel(150,10,190,50);
  bommel(200,10,240,50);
}
 
void bommel(int x,int y,int laengelength,int umfangsize)
{
  strokeWeight(1);
  line(x,y,x,y+laengelength);
  strokeWeight(5);
  ellipse(x,y+laengelength,umfangsize,umfangsize);
}

 

Und hier unser erstes interaktive Programm:

...