xxxxxxxxxx
let font;
let lastReset = 0;
function setup() {
createCanvas(windowWidth * 0.4, windowHeight);
background(0, 0, 0);
frameRate(10);
font = loadFont('Baumans-Regular.ttf');
}
function draw() {
// Reset the canvas at the start of each minute
if (millis() - lastReset > 25000) {
background(0, 0, 0);
lastReset = millis();
}
stroke(random(20, 255), random(20, 255), random(20, 255));
strokeWeight(random(0, 65));
fill(random(100, 255), random(100, 255), random(100, 255));
rect(random(0, 1000), 100, 100, random(0, 1000));
push();
translate(70,800);
textSize(100);
strokeWeight(5);
stroke(0);
//fill('');
blendMode(OVERLAY);
textFont(font);
text('MADE', 150, 0);
text('WITH CODE', 150, 90);
pop();
push();
translate(40, 600);
textSize(500);
strokeWeight(5);
stroke(0);
//fill('');
blendMode(OVERLAY);
textFont(font);
text('ART', 0, 0);
pop();
}