Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- PImage myImage, myImage2;
- color col,col2;
- void setup() {
- background(255);
- colorMode(HSB, 100);
- myImage = loadImage("pic1.jpg");
- myImage2 = loadImage("pic2.jpg");
- size(myImage.width, myImage.height);
- myImage.loadPixels();
- myImage2.loadPixels();
- strokeCap(SQUARE);
- }
- void draw() {
- int x = int(random(width));
- int y = int(random(height));
- int x2 = int(random(width));
- int y2 = int(random(height));
- noFill();
- strokeWeight(1);
- stroke(myImage.get(x, y),20);
- arc(x, y, random(10,50), random(10,50),random(TAU),random(TAU));
- stroke(myImage2.get(x2, y2),20);
- arc(x2, y2, random(10,50), random(10,50),random(TAU),random(TAU));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement