Forked from Jolievw/gist:d7a97854991aac2fbe68d494b04f270b
Last active
December 7, 2018 16:01
-
-
Save dropmeaword/3269da487683d0cd7ddd28629c990563 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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