Krumme2004_MyPrograms/Uge 2/Former_gone_weird/Trekant.pde
class Triangle {
  // klassens attributter/ tilstand
  float x1, y1, x2, y2, x3, y3;

  //konstrukt√∏ren
  Triangle() {
    this.x1 = random(600);
    this.y1 = random(400);

    this.x2 = random(600);
    this.y2 = random(400);

    this.x3 = random(600);
    this.y3 = random(400);
  }

  void tegnTrekt() {
    float r = random(256);
    float g = random(256);
    float b = random(256);
    color c =color(r, g, b);
    fill(c);

    triangle(x1, y1, x2, y2, x3, y3);
  }
}
