Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PImage img;
- int step=3;
- void setup() {
- img = loadImage("http://i.imgur.com/rVnFQo3.jpg");
- size(img.width, img.height);
- frameRate(5);
- image(img, 0, 0);
- }
- void draw() {
- fill(#ED00AA, 40);
- noStroke();
- float y = 60 + random(10,80);
- rect(0, y, width, y);
- //if (frameCount<30) saveFrame("image-###.gif");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement