Skip to content

Instantly share code, notes, and snippets.

@federico-pepe
Created November 19, 2015 15:28
Show Gist options
  • Select an option

  • Save federico-pepe/e01237efda73031f49cf to your computer and use it in GitHub Desktop.

Select an option

Save federico-pepe/e01237efda73031f49cf to your computer and use it in GitHub Desktop.
Introduction to Processing: For loop
void setup() {
size(700, 500);
background(255);
for(int y = 10; y < height; y+=10) {
line(100, y, 600, y);
}
}
void draw() {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment