Beginning Image (photoshop) :
Using code on processing to edit the image:
Some of the code used:
oid draw() {
loadPixels();
// Since we are going to access the image's pixels too
img.loadPixels();
for (int y = 0; y < height; y++) {
for (int x = 0; x < width; x++) {
int loc = x + y*width;
// The functions red(), green(), and blue() pull out the 3 color components from a pixel.
float r = red(img.pixels[loc]);
float g = green(img.pixels[loc]);
float b = blue(img.pixels[loc]);
// Image Processing would go here
// If we were to change the RGB values, we would do it here,
// before setting the pixel in the display window.
// Set the display pixel to the image pixel
pixels[loc] = color(r,g,b);
}
}
updatePixels();
}
Final Images:
Potential for final work:
Other potential: Video Inspired by "Powers of 10" 1977, a video where the coding work keeps zooming out. 1000x1000 Pixel.
Komentáře