From 7f7515a2eb5c6c059101107be47ef87544445cec Mon Sep 17 00:00:00 2001 From: AndreaTerenz Date: Wed, 21 Feb 2024 17:39:36 +0100 Subject: [PATCH] Vercel wake up pls --- static/scripts/p5_thing.js | 45 -------------------------------------- 1 file changed, 45 deletions(-) delete mode 100644 static/scripts/p5_thing.js diff --git a/static/scripts/p5_thing.js b/static/scripts/p5_thing.js deleted file mode 100644 index 88a04bc..0000000 --- a/static/scripts/p5_thing.js +++ /dev/null @@ -1,45 +0,0 @@ -var size -var ratio -var rows = 30 -var columns -var offset = 0.0 - -function setup() { - createCanvas(window.innerWidth, window.innerHeight).parent("#p5Parent") - drawSquares() -} - -function drawSquares() { - size = createVector(window.innerWidth, window.innerHeight) - ratio = size.x / size.y - columns = 60 - - let colSize = Math.floor(size.x / columns) - let rowSize = Math.floor(size.y / rows) - console.log(size, rows, columns, ratio, colSize, rowSize) - - push() - translate(size.x / 2, size.y / 2) - - strokeWeight(0) - for (let x = 0; x < columns; x += 1) { - for (let y = 0; y < rows; y += 1) { - let pos = createVector(x, y) - let noiseScale = .1 - let noiseVal = noise(pos.x * noiseScale, pos.y * noiseScale, offset) - - let startCol = color('rgb(19,15,118)') - let endCol = color('rgb(75,255,255)') - - fill(lerpColor(startCol, endCol, noiseVal)) - rect(pos.x * colSize - displayWidth / 2, pos.y * rowSize - displayHeight / 2, colSize, rowSize) - } - } - - pop() -} - -function windowResized() { - console.log("AAAAAAAAAAAa") - drawSquares() -} \ No newline at end of file