customFont = loadFont('MilkyVintage-Regular.ttf');
colors = [color(0, 0, 255), color(255, 165, 0), color(255, 215, 0)];
function createButtonUI() {
let refreshBtn = createButton('Refresh Design');
refreshBtn.position(10, height + 10);
refreshBtn.mousePressed(() => redraw());
function drawRectangles() {
rect(random(width * 0.1, width * 0.3), random(height * 0.6, height * 0.7), width * 0.6, height * 0.2);
rect(random(width * 0.2, width * 0.4), random(height * 0.5, height * 0.65), width * 0.5, height * 0.15);
rect(random(width * 0.3, width * 0.5), random(height * 0.45, height * 0.55), width * 0.4, height * 0.1);
function drawIntersectingLines() {
for (let x = 0; x < width; x += 20) {
let startY = height * 0.85 + random(-5, 5);
let endX1 = width * 0.5 + random(-20, 20);
let endY1 = height * 0.4 + random(-20, 20);
let endX2 = width * 0.7 + random(-20, 20);
let endY2 = height * 0.45 + random(-20, 20);
line(x, startY, endX1, endY1);
line(x, startY, endX2, endY2);
text("MARCEL PROUST", 40, 100);
text("AND DELIVERANCE FROM TIME", 40, 140);
text("GERMAINE BRÉE", 70, 180);
text("$1.45", 10, height * 0.65);
text("EVERGREEN E123", 10, height * 0.68);
saveCanvas("week8-computational_poster.jpg");