Leila Aflatoony

From BioV
Revision as of 02:37, 4 November 2009 by Leila (talk | contribs)
Jump to navigation Jump to search

Assignment 1


project 1


Assignment 2


project 2

part 2


Assignment 3

assignment 3 - 01

Create a subclass of PImage that implements a mosaic( int blockSize )method.The blockSize parameter specifies how big the mosaic block is (e.g. blockSize = 4 would mean the mosaic block size is 4 pixels by 4 pixels). The mosaic method should replace each block of pixels in the image (e.g. if blockSize = 4, each block of 4 by 4 pixels) with the average color value of the pixels in that block. Look at the Pixelate->Mosaic filter in photoshop for an example of what this image operation does. Demonstrate your new class by drawing an image with several different block sizes.