xxxxxxxxxx
let button;
let input;
function setup() {
createCanvas(windowWidth, windowHeight);
button = createButton('input');
button.position(20,60);
button.mousePressed(prr);
input=createInput();
input.position(20,20);
background(0);
//colorMode(HSB, 300, 100 , 100, 100);
}
function draw() {
dia = 300;
hash = 0;
while (dia > 0) {
circle(windowWidth/2, windowHeight/2, dia);
dia -= 5;
if (hash==0) {
fill(150, 255, 7);
hash = 2;
}
hash -= 1;
}
}
function prr(){
textAlign(CENTER);
textSize(100);
text(input.value(), width/2, height/4);
}