Skip to content

Instantly share code, notes, and snippets.

@JackBelodeau
Created November 2, 2018 15:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JackBelodeau/5bba7703814819c95291305169244358 to your computer and use it in GitHub Desktop.
Save JackBelodeau/5bba7703814819c95291305169244358 to your computer and use it in GitHub Desktop.
function setup() {
createCanvas(1920, 1080);
background(10);
noStroke();
}
function draw() {
background('brown');
from = color(255, 204, 0);
to = color('red');
c1 = lerpColor(from, to, .101);
c2 = lerpColor(from, to, 20);
c3 = lerpColor(from, to, 14);
for (var i = 0; i < 15; i++) {
fill(from);
quad(random(940, 120), random(height),
random(940, 120), random(height),
random(940, 120), random(height),
random(940, 120), random(height));
fill(c1);
quad(random(1040, 280), random(height),
random(1040, 280), random(height),
random(1040, 280), random(height),
random(1040, 280), random(height));
fill(c2);
quad(random(1120, 180), random(height),
random(1120, 180), random(height),
random(1120, 180), random(height),
random(1120, 180), random(height));
fill(to);
quad(random(1200, 160), random(height),
random(1200, 160), random(height),
random(1200, 160), random(height),
random(1200, 160), random(height));
}
frameRate(15);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment