Skip to content

Instantly share code, notes, and snippets.

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