xxxxxxxxxx
36
let rotateAmount = 100;
let speed = 10;
function setup() {
createCanvas(400, 400);
textAlign(CENTER, CENTER)
textSize(10)
//angleMode(DEGREES)
}
function draw() {
background("black");
fill("white")
push()
translate(200, 200)
rotate(rotateAmount)
text("SPIN", 0, 0);
textSize(20)
text("SPIN", 0, 20)
text("SPIN", 200, 20)
textSize(30)
text("SPIN", 0, 50)
noFill()
stroke("#FF48B0")
strokeWeight(1)
circle(mouseX, 0, 200)
pop()
rotateAmount = rotateAmount + speed
}