xxxxxxxxxx
function setup() {
createCanvas(windowWidth, windowHeight);
background(255);
}
function draw() {
background(255);
noFill();
ellipse(width/2,height/2,50,50);
rectMode(CENTER)
// circle(width/2,height/2,50)
// rect(50+frameCount*5,50+frameCount*5,100,100)
// fill('red')
noFill()
// strokeWeight(frameCount%2 ==0?5:1)
// //偶數曾比較厚 基數比較少
// stroke(mouseX)
// rect(width/2,height/2,100+frameCount*20,50+mouseX)
// print(frameCount)
fill("black")
textSize(50)
text(int(mouseX)+","+int(mouseY),50,50)
triangle(440,140,160,600,800,600)
}