xxxxxxxxxx
PImage v;
void setup() {
v = loadImage("PrayerFlags.jpg");
size(720, 480); // flags
}
void draw() {
image(v, 0, 0);
for (int i = int(width*.2); i<height-int(width*.2); i++) {
int sx = int(random(-75, 57)+width*.75);
makeLine(sx, i);
}
}
void makeLine(int _x, int _y) {
color c = get(_x, _y);
stroke(c);
line(_x, _y, width, _y);
}
void makeVLine(int _x, int _y) {
color c = get(_x, _y);
stroke(c);
line(_x, _y, _x, height);
}