小學工作坊
Last Update: 05-DEC-2022
Last Update: 05-DEC-2022
let r=20
let a=0
function setup() {
button = createButton('Save Image');
button.position(10, 10);
button.mousePressed(saveDrawing);
createCanvas(900, 600);
background(0);
for(i=1;i<=12000;i++){
push()
let x=r*cos(a)
let y=r*sin(a)
r+=0.08
a+=1
pop()
}
fill(255, 255, 255);
stroke(random(255), random(255), random(255));
textSize(75);
textAlign(CENTER);
text("Your Name",450,325);
}
function draw() {
}
function saveDrawing() {
save("Picture.png");
}