Skip to content

Instantly share code, notes, and snippets.

@suttree
Created December 23, 2017 20:04
Show Gist options
  • Save suttree/5f42875bd6936838158ab57c267b26e9 to your computer and use it in GitHub Desktop.
Save suttree/5f42875bd6936838158ab57c267b26e9 to your computer and use it in GitHub Desktop.
// If more than one screen is attached to the computer, run the
// code at the full dimensions across all of the attached screens
int x = 0;
void setup() {
fullScreen(P2D, SPAN);
background(0);
noStroke();
fill(102);
}
void draw() {
rect(x, height*0.2, 1, height*0.6);
x = x + 2;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment