Skip to content

Instantly share code, notes, and snippets.

@dropmeaword
Forked from Jolievw/gist:d7a97854991aac2fbe68d494b04f270b
Last active December 7, 2018 16:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dropmeaword/3269da487683d0cd7ddd28629c990563 to your computer and use it in GitHub Desktop.
Save dropmeaword/3269da487683d0cd7ddd28629c990563 to your computer and use it in GitHub Desktop.
int count = 0;
int position = 1;
PImage sky;
void setup() {
fullScreen();
}
void draw() {
count++;
sky = loadImage("img.jpg");
//image(sky, 0, (height/4*position)-height/4);
PImage crop = sky.get(0,0,width,height/24);
image(crop, 0, (height/24*position)-height/24);
position++;
if (position > 24) {
position = 1;
}
count = 0;
int wait = 1000 * 60 * 60;
delay(wait);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment