Advertisement
xeromino

fusion

Dec 29th, 2013
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.67 KB | None | 0 0
  1. PImage myImage, myImage2;
  2. color col,col2;
  3.  
  4. void setup() {
  5.   background(255);
  6.   colorMode(HSB, 100);
  7.   myImage = loadImage("pic1.jpg");
  8.   myImage2 = loadImage("pic2.jpg");
  9.   size(myImage.width, myImage.height);
  10.   myImage.loadPixels();
  11.   myImage2.loadPixels();
  12.   strokeCap(SQUARE);
  13. }
  14.  
  15. void draw() {
  16.   int x = int(random(width));
  17.   int y = int(random(height));
  18.   int x2 = int(random(width));
  19.   int y2 = int(random(height));
  20.   noFill();
  21.   strokeWeight(1);
  22.   stroke(myImage.get(x, y),20);
  23.   arc(x, y, random(10,50), random(10,50),random(TAU),random(TAU));
  24.   stroke(myImage2.get(x2, y2),20);
  25.   arc(x2, y2, random(10,50), random(10,50),random(TAU),random(TAU));
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement