xxxxxxxxxx
35
let wordCount = 2;
function setup() {
createCanvas(400, 400, SVG);
fill(0);
textSize(60);
textStyle(BOLD);
textFont("Arial");
angleMode(DEGREES);
noLoop();
background(220);
pdf = createPDF();
pdf.beginRecord();
}
function draw() {
// background(220);
push();
translate(width / 2, height / 2);
for (let i = 0; i < wordCount; i++) {
rotate(360 / wordCount);
text("OBEY", 0, 0);
}
pop();
}
function keyPressed() {
if (keyCode === ENTER) {
//save("test.svg");
pdf.save();
}
}