Difference between revisions of "Leila Aflatoony"

From BioV
Jump to navigation Jump to search
Line 53: Line 53:
 
[http://www.sfu.ca/~laflatoo/iat800/assignment3/part1/01/ assignment 3 - 01]
 
[http://www.sfu.ca/~laflatoo/iat800/assignment3/part1/01/ 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.''
+
'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.'

Revision as of 02:34, 4 November 2009

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.'