. Note how the green pixels only turned into red pixels.
For following extensions,
- Create a larger or more complex Warhol style collage. Place the images in a pattern more complicated than that of a square (but not random!).
- Enable your Warhol program to read in multiple images from the command line and make a collage for each one, or a collage that integrates several images.
I created a bigger collage, still-square looking. However, my end-result does not look like a square because I did not fill up the entire collage. The key is to calculate where each image will be placed within the collage. Image Added.
Another difference is the number of images I am copying within the program because I want to enable my Warhol program to read in multiple images. Here is the solution:Image Added . Simple. The rest is very similar with the original Warhol program. I just copy more images, apply more filters to those images and then place them in the collage. Below is the result.
. I did create two more filters for this extension: cooler and negative. Cooler filter, which is the flower image that looks darker, literally cools down the image by decreasing r and g values.(the bright colors) Here is how the filter would change another image.
Image Added. The negative filter basically subtracts the rgb values from 255 individually. Intuitively, this filter would basically witch the RGB values upside-down. In other words, the bright colors would turn dark and vice versa.