Advertisement
xeromino

john

Mar 2nd, 2014
452
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.42 KB | None | 0 0
  1. float y;
  2. PImage img;
  3.  
  4. void setup() {
  5.   img = loadImage("jm.jpg");
  6.   size(img.width, img.height);
  7.   background(0);
  8.   noFill();
  9.   strokeCap(SQUARE);
  10.   image(img, 0, 0);
  11.    
  12.   for (int y=0; y<height;y++) {
  13.   stroke(get(width/2,y),255);
  14.   line(width/2,y,width,y);  
  15.   stroke(0);
  16.   line(width,y,width/2 + random(width/2-20),y);  
  17. }
  18.  
  19.  
  20. }
  21.  
  22. void draw() {
  23.  
  24. }
  25.  
  26. void keyPressed() {
  27.   save(random(3434)+".jpg");
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement