Skip to content

Instantly share code, notes, and snippets.

@federico-pepe
Last active November 14, 2015 14:31
Show Gist options
  • Select an option

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

Select an option

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