xxxxxxxxxx
var counter = 0;
function setup() {
createCanvas(windowWidth, windowHeight);
background(0);
}
function draw() {
background(0);
rectMode(CENTER);
translate(0, height / 2);
mouseX/1000
let num = map(mouseX, 0, width, 0, 200);
for (let y = 0; y < num; y += 1) {
let rot = map(y, 0, num, 90, PI);
let posx = map(y, 0, num, 0, width);
//let col = map(y, 0, num, 0, 255);
//stroke(col);
push();
translate(posx, 0);
rotate(rot);
noFill();
stroke(255);
stroke (255,60,90)
//rect(0, 0, 300, 150);
arc(0, 0, 300, 300, 0, PI);
//line(300, 0, 0, 0);
//line(-300, 0, 0, 300);
//line(0, 500, 0, 0);
//line(0, -500, 0, 0);
pop();
}
}