let shapes = [];
let numShapes = 50;

function setup() {
  createCanvas(400, 400);
  noStroke();
  for (let i = 0; i < numShapes; i++) {
    shapes.push(new Shape(random(width), random(height), random(20, 50), random(2, 5)));
  }
}

function draw() {
  background(220);
  for (let i = 0; i < shapes.length; i++) {
    shapes[i].move();
    shapes[i].display();
  }
}

function mouseClicked() {
  for (let i = 0; i < shapes.length; i++) {
    shapes[i].clicked(mouseX, mouseY);
  }
}

class Shape {
  constructor(x, y, size, speed) {
    this.x = x;
    this.y = y;
    this.size = size;
    this.speed = speed;
    this.color = color(random(255), random(255), random(255));
    this.shapeType = int(random(4));
    this.rotation = random(0, TWO_PI);
    this.rotationSpeed = random(-0.1, 0.1); // Geschwindigkeit der Drehung
    this.isClicked = false; // Zustand, ob die Form angeklickt wurde
  }

  move() {
    this.x += random(-this.speed, this.speed);
    this.y += random(-this.speed, this.speed);
    this.x = constrain(this.x, 0, width);
    this.y
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence