Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- float y;
- PImage img;
- void setup() {
- img = loadImage("jm.jpg");
- size(img.width, img.height);
- background(0);
- noFill();
- strokeCap(SQUARE);
- image(img, 0, 0);
- for (int y=0; y<height;y++) {
- stroke(get(width/2,y),255);
- line(width/2,y,width,y);
- stroke(0);
- line(width,y,width/2 + random(width/2-20),y);
- }
- }
- void draw() {
- }
- void keyPressed() {
- save(random(3434)+".jpg");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement