DOC PREVIEW
GT LCC 6310 - Computation as an Expressive Medium

This preview shows page 1-2-3-21-22-23-42-43-44 out of 44 pages.

Save
View full document
View full document
Premium Document
Do you want full access? Go Premium and unlock all 44 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 44 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 44 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 44 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 44 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 44 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 44 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 44 pages.
Access to all documents
Download any document
Ad free experience
View full document
Premium Document
Do you want full access? Go Premium and unlock all 44 pages.
Access to all documents
Download any document
Ad free experience
Premium Document
Do you want full access? Go Premium and unlock all 44 pages.
Access to all documents
Download any document
Ad free experience

Unformatted text preview:

Computation as an Expressive Computation as an Expressive MediumMediumMediumMediumLab Lab 44: : Pretty, Pretty Pretty, Pretty PicturesPicturesJoshua CuneoJoshua CuneoJoshua CuneoJoshua CuneoFo todaFo todaFor todayFor today ¼ Checkpoint¼ CheckpointBuilding BlocksBuilding BlocksBuilding BlocksBuilding Blocks Assignment Assignment 22IMIIMIImages + More ImagesImages + More Images Accessing PixelsAccessing Pixels 22D ArraysD ArraysProjectProject22Project Project 22CheckpointCheckpointOrganizing these manipulationsManipulating stored dataHard-codedManipulating stored dataStoring the categorized dataCategorizing the dataUser inputmouseXHardcodedmouseXmouseYText boxesDataLetters: a, B, c, &, (, !Numbers: 1, 2, 3VariablesArraysint, float, charProcessingwidthheightifforArithmeticArraysgsecond()random()FilesFunctionsParsingDrawingFilesImage filesText filesWeb filesFunctionsMethodsClassesWeb filesAssignment Assignment 22!!AA220101: Using beginShape() and endShape() create a composition with five or more: Using beginShape() and endShape() create a composition with five or moreAA22--0101: Using beginShape() and endShape(), create a composition with five or more : Using beginShape() and endShape(), create a composition with five or more vertices.vertices. AA22--0202: Using beginShape() and endShape(), create a composition with ten or more vertices.: Using beginShape() and endShape(), create a composition with ten or more vertices. AA22--0303: Create an image different from A: Create an image different from A22--0202, but using the same vertex data., but using the same vertex data.AA22--0404: Write a function with one parameter and demonstrate it visually: Write a function with one parameter and demonstrate it visuallyAA22--0404: Write a function with one parameter and demonstrate it visually.: Write a function with one parameter and demonstrate it visually. AA22--0505: Write a function for drawing triangles and visually demonstrate its flexibility.: Write a function for drawing triangles and visually demonstrate its flexibility. AA22--0606: Write a function with three or more parameters and visually demonstrate its : Write a function with three or more parameters and visually demonstrate its flexibility.flexibility.AA22--0707: Create a dynamic animation using the cos() function as a generator for motion: Create a dynamic animation using the cos() function as a generator for motionAA22--0707: Create a dynamic animation using the cos() function as a generator for motion.: Create a dynamic animation using the cos() function as a generator for motion. AA22--0808: Create a dynamic animation using the cos() and sin() function as a generator for : Create a dynamic animation using the cos() and sin() function as a generator for motion.motion. AA22--0909: Move two visual elements across the screen using the random() function as a : Move two visual elements across the screen using the random() function as a generator of movement. Give each element a unique nonlinear motion.generator of movement. Give each element a unique nonlinear motion.generator of movement. Give each element a unique nonlinear motion.generator of movement. Give each element a unique nonlinear motion. AA22--1010: Create an event that begins when the mouse is pressed and ends when the mouse : Create an event that begins when the mouse is pressed and ends when the mouse is released.is released. AA22--1111: Create a responsive image that behaves differently when the mouse is moving and : Create a responsive image that behaves differently when the mouse is moving and the mouse is dragging.the mouse is dragging. AA22--1212: Create a button that changes the color of the background when it is clicked.: Create a button that changes the color of the background when it is clicked. AA22--1313: Program your moving elements from A: Program your moving elements from A22--09 09 but use classes to represent the two but use classes to represent the two visual elements.visual elements. AA22--1414: Create a subclass of one of the asteroids classes that adds a new capability. Some : 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 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 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 draw()), subclass of Asteroid that know when it's been hit (instead of doing this test in draw()), create a subclass of Asteroid that splits into two smaller Asteroids when it's hit.create a subclass of Asteroid that splits into two smaller Asteroids when it's hit.In fe e o dsIn fe e o dsIn fewer words...In fewer words...<sketchbook directory>sketch_namesketch_name.pdedatadatasome.jpgPImagePImagePImagePImage1.1. Bring the image into ProcessingBring the image into ProcessingPI t t k l dI ("ttkj")PImage startrek = loadImage("startrek.jpg"); 2.2. Load the image to our canvasLoad the image to our canvasimage(startrek, 0, 0);Accessing Pi elsAccessing Pi elsAccessing PixelsAccessing Pixels loadPixelsloadPixels();();pixels[];pixels[];pixels[];pixels[]; updatePixelsupdatePixels();();Accessing PixelsAccessing PixelsAccessing PixelsAccessing Pixels01 3240123Accessing PixelsAccessing PixelsAccessing PixelsAccessing Pixels0132401324011233043210Accessing PixelsAccessing PixelsAccessing PixelsAccessing Pixels0132401324011233019876543210Accessing PixelsAccessing PixelsAccessing PixelsAccessing Pixels013240132401123301 23191817161514131211109876543210Accessing PixelsAccessing PixelsAccessing PixelsAccessing Pixels013240132401(4, 0) = 4 + 0*5 = 4(3, 2) = 3 + 2*5 = 13123301 23191817161514131211109876543210Accessing PixelsAccessing PixelsAccessing PixelsAccessing PixelsAIdfil()AIdfil()Array Index of pixel (x, y) Array Index of pixel (x, y) =x+y*width=x+y*width x + y width x + y widthWhere width = pixel width of the imageAccessing Pi elsAccessing Pi elsAccessing PixelsAccessing PixelsPImage im = loadImage(“test1.jpg”);age oad age( test.jpg );// gets color at (3, 2) color c1 = im.pixels[3 +


View Full Document

GT LCC 6310 - Computation as an Expressive Medium

Documents in this Course
Load more
Download Computation as an Expressive Medium
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Computation as an Expressive Medium and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Computation as an Expressive Medium 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?