Difference between revisions of "Serena Hillman"
(→Assignment #3) |
(→Assignment #3) |
||
Line 48: | Line 48: | ||
== Assignment #3 == | == Assignment #3 == | ||
− | [http://serenasafemode.com/iat800/ | + | [http://serenasafemode.com/iat800/assignment_3/applet/ Part #1] |
Create a subclass of PImage that implements a mosaic( int blockSize ) method. | 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. | 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 05:29, 3 November 2009
Assignment #1
- Assignment #1-01 Draw three lines.
- Assignment #1-02 Draw five lines.
- Assignment #1-03 Draw three ellipses.
- Assignment #1-04 Control the position of two lines with one variable.
- Assignment #1-05 Control the position and size of two lines with two variables.
- Assignment #1-06 Control the properties of two shapes with two variables.
- Assignment #1-07 Create a simple, regular pattern with six lines.
- Assignment #1-08 Program your pattern from Assignment 1-07 using while().
- Assignment #1-09 Draw a layered form with two new loops.
- Assignment #1-10 Redo Assignment 1-05 using mouseX and mouseY as the variables.
- Assignment #1-11 Draw two visual elements that each move in relation to the mouse in a different way.
- Assignment #1-12 Draw three visual elements that each move in relation to the mouse in a different way.
- Assignment #1-13 Move a visual element across the screen. When it disappears off the edge, move it back into the frame.
- Assignment #1-14 Draw a visual element that moves in relation to the mouse, but with a different relation when the mouse is pressed.
- Assignment #1-15 Using if and else, make the mouse perform different actions when in different parts of the window.
- Assignment #1-16 Develop a kinetic image which responds to the mouse.
Project #1
- Project #1 Build a cool clock
Assignment #2
- Assignment #2-01 Using beginShape() and endShape(), create a composition with five or more vertices.
- Assignment #2-02 Using beginShape() and endShape(), create a composition with ten or more vertices.
- Assignment #2-03 Create an image different from A2-02, but using the same vertex data.
- Assignment #2-04 Write a function with one parameter and demonstrate it visually.
- Assignment #2-05 Write a function for drawing triangles and visually demonstrate its flexibility.
- Assignment #2-06 Write a function with three or more parameters and visually demonstrate its flexibility.
- Assignment #2-07 Create a dynamic animation using the cos() function as a generator for motion.
- Assignment #2-08 Create a dynamic animation using the cos() and sin() function as a generator for motion.
- Assignment #2-09 Move two visual elements across the screen using the random() function as a generator of movement. Give each element a unique nonlinear motion.
- Assignment #2-10 Create an event that begins when the mouse is pressed and ends when the mouse is released.
- Assignment #2-11 Create a responsive image that behaves differently when the mouse is moving and the mouse is dragging.
- Assignment #2-12 Create a button that changes the color of the background when it is clicked.
- Assignment #2-13 Program your moving elements from A2-09 but use classes to represent the two visual elements.
- Assignment #2-14 Create a subclass of one of the asteroids classes that adds a new capability. Some examples of what you could do: create a subclass of Rocket (or ArmedRocket) that shoots flame when the thrusters are fired and/or plays a sound when thrusters are fired, create a subclass of Asteroid that know when it's been hit (instead of doing this test in loop()), create a subclass of Asteroid that splits into two smaller Asteroids when it's hit.
Project #2
Part 1: Describe in a paragraph what your editor will accomplish by the due date. Due: Tuesday, October 13. If the Prof thinks it is too much or too little, we will rapidly negotiate a level of work that is appropriate to your current skills.
I will build a picture manipulation tool. This tool will let users apply different filters to a picture. It will also allow them to change the saturation and tint levels.
Part 2:
Assignment #3
Part #1 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.