xxxxxxxxxx
26
function setup() {
createCanvas(windowWidth, windowHeight);
drawText();
}
function windowResized() {
// !! this function runs when the window is resized, animations can be done using push and pop etc...
resizeCanvas(windowWidth, windowHeight);
myText();
}
function drawText() {
background(240, 240, 255);
textAlign(CENTER, CENTER);
textSize(72);
fill(255);
strokeWeight(4);
textStyle(BOLD);
stroke(0,0,255);
text("텍스트", width/2, height/2);
// PD Notes: add text first, and then add textAlign to center, then textSize etc...
}