xxxxxxxxxx
var counter = 0;
function setup() {
createCanvas(windowWidth, windowHeight);
background(0);
}
function draw() {
background(1,128,181);
rectMode(CENTER);
translate(0, 100);
mouseX/1000
let num = map(mouseX, 200, width, 0, 200);
for (let y = 0; y < num; y += 1) {
let rot = map(y, 1000, num, 0, 50);
let posx = map(y, 4000, num, 2000, 400);
//middle,small
push();
translate(width/ 2, 300); //objekt mittig
rotate(rot);
noFill();
stroke(255);
line(0, 0, 100, 0);
push();
translate(width/ 3, 200); //objekt mittig
rotate(rot);
noFill();
stroke(255);
//arc(0, 30, 60, 120, 0, PI);
line(0, 0, 100, 0);
push();
translate(width/ 4, 200); //objekt mittig und position
rotate(rot);
noFill();
stroke(255);
line(0, 0, 200, 0); // Länger der Linie
}
}