Created
June 7, 2022 01:20
-
-
Save liamegan/7edc5853bf27cc684ace8124d599a79e to your computer and use it in GitHub Desktop.
For Christa
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function setup() { | |
createCanvas(windowWidth, windowHeight); | |
randomSeed(fxrand() * 999999); | |
noiseSeed(fxrand() * 999999); | |
noStroke(); | |
fill(0); | |
ellipse(11, 145, 35, 35); | |
for (let i = 0; i < 1110; i++) { | |
fill(random(2515), random(115), random(1115), random(2155)); | |
scale(1.0001); | |
triangle(100, 950, 11, 11); | |
circle(100, 950, 11, 11); | |
circle(900, 600, 11, 11); | |
circle(1100, 800, 11, 11); | |
circle(1100, 1500, 11, 11); | |
triangle(random(windowWidth), random(windowHeight), random(1111)); | |
triangle(random(windowWidth), random(windowHeight), random(1)); | |
fill(random(211), random(211), random(211), random(211)); | |
scale(1); | |
ellipse(1211, 211, 121, 111, 11, 111); | |
ellipse(1211, 200, 121, 111, 11, 111); | |
ellipse(1111, 2222, 121, 111, 11, 111); | |
ellipse(780, 1, 100, 40); | |
ellipse(100, 20, 600, 1); | |
rect(random(windowWidth), random(windowHeight), random(3515)); | |
stroke(214.182); | |
triangle(440, 655, 45, 45); | |
triangle(330, 222, 45, 45); | |
triangle(333, 800, 45, 45); | |
triangle(330, 111, 45, 45); | |
triangle(341, 111, 45, 45); | |
arc(0, 0, 180, 180, HALF_PI, PI); | |
triangle(34, 45, 11, 10); | |
circle(260, 255, 20, 20); | |
ellipse(330, 70, 30, 30); | |
ellipse(700, 255, 20, 20); | |
circle(830, 330, 20, 20); | |
circle(1050, 240, 30, 30); | |
rect(900, 80, 55, 20, 20, 15, 10, 5); | |
triangle(20, 20, 1800, 900); | |
triangle(random(windowWidth), random(windowHeight), random(1)); | |
triangle(random(windowWidth), random(windowHeight), random(8)); | |
rect(random(windowWidth), random(windowHeight), random(110)); | |
rect(random(windowWidth), random(windowHeight), random(21)); | |
ellipse(random(windowWidth), random(windowHeight), random(15)); | |
rect(random(windowWidth), random(windowHeight), random(6)); | |
rect(random(windowWidth), random(windowHeight), random(81)); | |
ellipse(random(windowWidth), random(windowHeight), random(4)); | |
stroke(1); | |
strokeWeight(0.5); | |
fill(11, 222, 211, 211); | |
ellipse(380, 300, 1, 1); | |
ellipse(430, 200, 5, 5); | |
ellipse(220, 210, 3, 3); | |
ellipse(30, 100, 2, 2); | |
triangle(20, 20, 300, 12); | |
/////ones with strokes | |
stroke(1); | |
strokeWeight(14); | |
ellipse(900, 900, 20, 20); | |
ellipse(1400, 1100, 2, 2); | |
fill(1, 111, 121, 111); | |
ellipse(110, 0, 29, 29); | |
ellipse(190, 200, 20, 20); | |
rect(400, 11, 50, 50); | |
rect(820, 200, 40, 110); | |
ellipse(630, 80, 35, 35); | |
ellipse(175, 80, 35, 35); | |
ellipse(222, 80, 35, 35); | |
fill(11, 135, 11, 190); | |
ellipse(440, 655, 45, 45); | |
fill(111, 80, 65, 160); | |
stroke(211, 45); | |
ellipse(900, 80, 35, 35); | |
ellipse(385, 580, 20, 20); | |
ellipse(400, 580, 20, 20); | |
fill(230, 15, 30, 150); | |
ellipse(397, 110, 20, 20); | |
stroke(21, 45); | |
fill(255, 15, 30, 180); | |
ellipse(310, 600, 80, 80); | |
ellipse(1400, 300, 90, 90); | |
ellipse(380, 300, 40, 40); | |
fill(100, 160, 125, 150); | |
ellipse(600, 800, 30, 30); | |
ellipse(220, 475, 60, 60); | |
fill(255, 120, 80, 150); | |
stroke(133, 180); | |
ellipse(175, 585, 45, 45); | |
ellipse(850, 585, 45, 45); | |
ellipse(940, 200, 30, 30); | |
ellipse(1000, 20, 1, 1); | |
ellipse(900, 110, 20, 20); | |
fill(getRandomArbitrary(40, 160), getRandomArbitrary(30, 195), 200); | |
ellipse(125, 465, 25, 25); | |
triangle(random(windowWidth), random(windowHeight), random(2424)); | |
triangle(random(windowWidth), random(windowHeight), random(344)); | |
ellipse(random(windowWidth), random(windowHeight), random(5)); | |
stroke(211, 45); | |
rotate(7.07); | |
rect(random(windowWidth), random(windowHeight), random(11)); | |
strokeWeight(1); | |
strokeWeight(0.1); | |
noStroke(); | |
reachedBorder = false; | |
noise(random(windowWidth), random(windowHeight), random(140)); | |
random(windowWidth), random(windowHeight), random(3100); | |
strokeWeight(0.5); | |
triangle(random(windowWidth), random(windowHeight), random(100)); | |
} | |
setNoise1(); | |
setNoise2(); | |
} | |
function setNoise1() { | |
let yyyy = color(60, 41, 180, 130); | |
loadPixels(); | |
for (let x1 = 0; x1 < windowWidth; x1++) { | |
for (let y1 = 0; y1 < windowHeight; y1++) { | |
if (fxrand() > 0.9) { | |
const index = (x1 + y1 * windowWidth) * 8; | |
pixels[index] = red(yyyy); | |
pixels[index + 1] = green(yyyy); | |
pixels[index + 2] = blue(yyyy); | |
pixels[index + 3] = alpha(yyyy); | |
} | |
} | |
} | |
updatePixels(); | |
} | |
function setNoise2() { | |
let yyy = color(11, 22, 30, 200); | |
loadPixels(); | |
for (let x = 0; x < windowWidth; x++) { | |
for (let y = 0; y < windowHeight; y++) { | |
if (fxrand() > 0.89) { | |
const index = (x + y * windowWidth) * 8; | |
pixels[index] = red(yyy); | |
pixels[index + 1] = green(yyy); | |
pixels[index + 2] = blue(yyy); | |
pixels[index + 3] = alpha(yyy); | |
} | |
} | |
} | |
updatePixels(); | |
} | |
function getRandomArbitrary(min, max) { | |
return round(fxrand() * (max - min)) + min; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment