Skip to content

Instantly share code, notes, and snippets.

@leanda
Created June 8, 2017 10:06
Show Gist options
  • Save leanda/0bcd5447d975f1088c1123acf96887e8 to your computer and use it in GitHub Desktop.
Save leanda/0bcd5447d975f1088c1123acf96887e8 to your computer and use it in GitHub Desktop.
p5.js Gradient
function setup() {
createCanvas(600, 600);
}
function draw() {
background(200);
for (var i=0; i<width; i++) {
stroke(i/width * 255);
line(i, 0, i, height);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment