Advertisement
bethdps

Transicao

Nov 9th, 2016
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.28 KB | None | 0 0
  1. PImage imgOriginal, img;
  2.  
  3. int posy = 0;
  4.  
  5. void setup(){
  6.  
  7.   size(320,240);
  8.   imgOriginal = loadImage("original.png");
  9.   img = loadImage("img.png");
  10. }
  11.  
  12. void draw(){
  13.  
  14.   image (imgOriginal, 0, 0);
  15.   image (img, 0, posy);
  16.   for (int i=0; i<240; i++);
  17.     posy++;
  18.  
  19.    }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement