Processing exercise: convert image to grayscale using filter() |
PImage myImage1, myImage2;
void setup() {
myImage1 = loadImage("http://goo.gl/MMeu0o", "png");
myImage2 = loadImage("http://goo.gl/MMeu0o", "png");
myImage2.filter(GRAY);
size(450, 300);
smooth();
}
void draw() {
image(myImage1, 0, 0);
image(myImage2, myImage1.width, 0);
}
No comments:
Post a Comment