xxxxxxxxxx
44
let label = "MINI PROJECT-Outcome1-Kelsey";
let font;
let buffer1;
let buffer2;
function preload() {
font = loadFont("Smokum-Regular.ttf");
}
function setup() {
createCanvas(540, 540);
buffer2 = createGraphics(540,540);
buffer2.textFont(font);
buffer2.fill(255, 0, 199);
buffer2.textSize(230);
buffer2.textAlign(LEFT);
buffer2.text("GLITCH", 10, 350);
buffer1 = createGraphics(540, 540);
buffer1.background(255);
}
function draw() {
blendMode(BLEND);
background(0);
image(buffer2,random(1),random(5));
blendMode(EXCLUSION);
for (let i = 0; i < 20; i++) {
for (let j = 0; j < 10; j++) {
for (let k = 0; k < 3; k++) {
let x = sin((frameCount + j * 4 + i * 30) * 0.01) * 600;
let y = -cos((frameCount + k * 3) * 0.01) * j;
push();
translate(i * 100, j * 150);
image(buffer1, 0, x, 100 + 200);
pop();
}
}
}
}