xxxxxxxxxx
54
let = 100;
let hershey;
let imgCount = 0;
function preload() {
hershey = loadFont("hershey_simplex.otf")
}
function setup() {
createCanvas(283, 453);
console.log(mouseX)
textSize(10);
textFont(hershey);
noLoop();
//frameRate(30);
}
function draw() {
background(255);
fill(255, 230, 13)
noStroke();
let rectW = 70.8
let rectH = 106.2
let rx1 = 27.4;
let ry1 = 133.6;
rect(rx1, ry1, rectW, rectH);
fill(0,0,0)
let tx1 = random(width*.1, width*.8);
let tx2 = random(width*.1, width*.8);
let tx3 = random(width*.1, width*.8);
let ty1 = random(250, height*.9);
let ty2 = random(250, height*.9);
let ty3 = random(250, height*.9);
text(".turn to page 000", tx1, ty1);
text(".turn to page 000", tx2, ty2);
text(".turn to page 000", tx3, ty3);
noFill();
stroke(0);
strokeWeight(.5);
bezier(rx1 + rectW/2, ry1 + rectH+10, random(rx1, tx1), random(ry1 + rectH+10, ty1), random(rx1, tx1), random(ry1 + rectH+10, ty1), tx1-20, ty1);
if(imgCount< 1000) {
//save();
imgCount++;
} else {
console.log("done")
}
}