- General ICM Page: includes links to helpful resources, work from other sections, and instructions on how to upload your homework.
- Main Processing page
- book: www.learningprocessing.com
- Other Processing books available
- Processing site tutorials
- Roopa, Tuesday, 9:00-11:55am: Section Info, Section Homework
- Shiffman, Tuesday, 12:10-3:05pm: This section is for students with prior programming experience and has a different syllabus. See Tuesday Shiffman Syllabus
- Dano, Wednesday, 12:10-3:05pm: Section Info, Section Homework
- Danny, Wednesday, 9:00-11:55am and 3:20-6:15pm: Section Info, Morning Homework, Afternoon Homework
- Shiffman, Wednesday, 12:10-3:05pm: Section Info, Section Homework
- Mimi, Wednesday, 6:30-9:25pm: Section Info, Section Homework
- Why are we here? What is computational media? What is programming? What is it good for? What kinds of programming languages are there?
- Algorithmic Thinking
- What is Processing? Why Processing?
- Server-side vs. client programming
- Things made with Processing
- Drawing with numbers
- Processing's screen coordinates
- Processing's drawing and color functions
- Processing reference
- Running your application
- Exporting: application, android, javascript
- Abstract Modern Art for inspiration
- Watch
- Casey Reas Eyeo 2012 talk on Chance Operations
- Video Lessons 0.0-2.1 duplicate what we will cover in class. Watch 3.0-4.3 to preview next week's content.
- Hello Processing This is a one hour introduction to Processing that summarizes the content from the first two weeks of ICM. You might choose this over the other videos this week or wait until the second week and watch.
- Related Reading
- Chapters 1-2 from Learning Processing.
- Chapters 1-3 from Getting Started with Processing
- Downloading Processing
- Download Processing. This year we'll be using the pre-releases of Processing 3.0. To download 3, scroll down to the bottom of the download page or visit this direct github link.
- Homework
- Sign up for the ITP ICM Google Group (also sign up for your section's group)
- Create your own screen drawing: self-portrait, alien, monster, etc. Use only 2D primitive shapes – arc(), curve(), ellipse(), line(), point(), quad(), rect(), triangle() – and basic color functions – background(), colorMode(), fill(), noFill(), noStroke(), stroke(). Remember to use size() to specify the dimensions of your window.
- Sign up for a Github Account. You are not required to use github, but you will need an account to edit the wiki here.
- Post a link to your work on your section's wiki. Follow the guidelines provided on the wiki.
- Examples: https://github.com/shiffman/LearningProcessing -- take a look at Chapter 1 and 2 (3 if you are feeling ambitious).
- The flow: code blocks, setup, draw, and events
- Variation: mouseX,mouseY
- Variables: Declare, Initialize, Use
- random()
- map()
- Related Reading
- Chapters 3-4 from Learning Processing.
- Chapters 4-5 from Getting Started with Processing
- Watch (previews next week's content)
- Homework
- Create a animated application. Start over from scratch and build something with a very simple design. Focus on the logic of variables and avoid using hard-coded values. Play with mouseX and mouseY. Start by working in pairs (according to list below). You can post together or break off and complete the assignment individually. If you are stuck, here are some ideas.
- Experiment with motion using a single simple shape. Can you create a randomly jittering "nervous" square? (Here is a sample). A circle that spirals around the window? How could user interaction affect the shape's motion?
- Use random() to create a painting system. Here are some examples.
- Create a animated application. Start over from scratch and build something with a very simple design. Focus on the logic of variables and avoid using hard-coded values. Play with mouseX and mouseY. Start by working in pairs (according to list below). You can post together or break off and complete the assignment individually. If you are stuck, here are some ideas.
- Conditionals
- If, else if, else
- Boolean variables
- Relational Operators, Logical Operators
- Buttons, rollovers, switches
- Loops
- while
- for
- Modulo
- Additional examples from Chris Kairalla
- Related Reading
- Chapters 5-6 from Learning Processing.
- Chapters 4-5 from Getting Started with Processing
- Watch (preview next week's content)
- Supplemental Reading
- "Hackers and Painters" by Paul Graham
- Homework: In general this week, you should work with rule-based animation, motion, and interaction. You can use the ideas below or invent your own assignment. Start by working in pairs according to the wiki. Can you divide an idea into two parts and combine those parts? Can you swap sketches and riff of of your partner's work? You can post together or break off and complete the assignment individually.
- As an exercise, try making a rollover, button, or slider from scratch. Compare your code to the examples on github. Moving beyond the exercise, can you invent new GUI elements beyond buttons, sliders, rollovers, etc.?
- Create an algorithmic design with simple parameters. A good model is 10PRINT based on the examples provided here. There is also a nice discussion on the Processing forum. You can also read the 10 Print book online as a PDF.
- Consider tying the above two together and have a GUI control your 10PRINT visualization or motion sketch.
- Invent your own exercise related to animation and interaction.
- The Theory of Object Oriented Programming
- Functions
- Re-usability
- Modularity
- Calling vs. Defining
- Parameter Passing
- Return types
- Recursion
- Event functions
- Intro to Objects
- Watch (preview next week's content)
- Related Reading
- Chapters 7-8 from Learning Processing.
- Chapters 8-9 from Getting Started with Processing
- Homework: The goal for this week is to start organizing your code into modular and reusable parts. We'll start by playing with functions before moving to objects next week. Work individually or in pairs (no pairs will be assigned this week.) Some exercise ideas for you to pick from:
- Take a previous assignment with code in
setup()
anddraw()
and break everything out into separate function. - Take the idea for a design and break it out into its own function. Add parameters to the function so the design can be drawn differently based on the selected parameters. Draw three or more instances of the design on the screen to show the differences possible by changing the parameters. Here is the Robot example referred to in class
- Create a design from a recursive function. How could you animate or change this design over time? Can you make it interactive or have it controlled by
noise()
? Here are some samples as demonstrated in class.
- Take a previous assignment with code in
- Objects
- Principles and Theory (Encapsulation)
- How-to
- The Constructor!
- Objects talking to objects
- Related Reading
- Chapters 7-8 from Learning Processing.
- Chapters 8-9 from Getting Started with Processing
- Watch (preview next week's content)
- Videos 9.0-9.4
- You could also watch this video about ArrayLists and maybe the next one too. ArrayLists are covered in chapter 23 of Learning Processing.
- Homework
- Design a sketch in an object-oriented fashion. Try to eliminate all code from the main tab (setup() and draw()) except for the core requirements (size(), background(), etc.) and calls to objects.
- For example: Consider building a particle system. A particle system can be used to simulate: rain, snow, fireworks, explosions, smoke, etc. For this week, you would create a Particle class to describe a single particle and try to get two particles on the screen using separate variables. (Then next week, after we learn arrays, you would visualize hundreds (or thousands) of particles on the screen.)
- E-mail the code for a class to your assigned partner on the wiki. You'll get one from them too. Try incorporating the class sent to you into your sketch. Write some thoughts about this process on your blog -- Did anything not work? Could you follow your partner's code? Were comments helpful? (If you are feeling saucy, you could try to use github for this collaboration.)
- Design a sketch in an object-oriented fashion. Try to eliminate all code from the main tab (setup() and draw()) except for the core requirements (size(), background(), etc.) and calls to objects.
- Review loops
- Arrays
- A String is like an array of characters
- An image is like an array of pixels
- What is an ArrayList?
- Related Reading
- Chapters 6 and 9, from Learning Processing, Chapter 23 for ArrayLists.
- Chapter 10 from Getting Started with Processing
- Homework
- Using arrays and/or ArrayLists, write a program that creates multiple instances of an object (feel free to use an object you developed previously or create something new). Here are some additional ideas if you are stuck.
Using arrays, write a program that creates multiple instances of an object (feel free to use an object you developed previously or create something new). Here is an example you can use as a model. You should probably stop here, but here are some additional (more difficult) possibilities.
- Experiment with the resizable nature of ArrayLists. Can you add objects one at a time? Remove them after a certain amount of time or when they leave the screen? Can objects from on ArrayList trigger the birth of other objects? See this example as demonstrated in class.
- Create an object that stores the history of its own path. This might be a drawing program where you keep a history of mouse locations in an ArrayList or a shape that moves around the screen autonomously and draws its own trail. Can you have an ArrayList of these objects (each of which tracks its own ArrayList?). Example 1 Example 2
- Once you have an array of objects, you can have each object check every other object with a nested loop. Try incorporating this idea into a sketch by having objects react to intersecting with others. Example demonstrated in class
- A String is like an array of characters. Can you create a sketch that plays with text by looping through the "array" inside a String. See: charAt(). We'll get into this in more detail during the data week.
- A PImage contains an array of pixels. Experiment with image processing by looping through all the pixel colors of an image. This tutorial will help you get started. We'll get into this in more detail next week.
- Create a system that involves a two dimensional grid. Use a 2D array to store the data of this system. This tutorial will help you get started.
- Using arrays and/or ArrayLists, write a program that creates multiple instances of an object (feel free to use an object you developed previously or create something new). Here are some additional ideas if you are stuck.
Using arrays, write a program that creates multiple instances of an object (feel free to use an object you developed previously or create something new). Here is an example you can use as a model. You should probably stop here, but here are some additional (more difficult) possibilities.
- There are video lessons in progress about these topics. You can watch them here:
- Images
- Load and display images
- Writing pixels to screen
- Reading image pixels, image processing: brightness, threshold, etc
- Chapter 15 examples
- In class exercise: make an interactive image processing filter
- Video:
- Live video (Capture) and movie playback (Movie)
- Drawing shapes on screen colored by pixels
- Chapter 16 examples
- Exercise: Make a mirror that paints your portrait
- Computer vision:
- Screen Pixels
- Simple color tracking
- Face detection with OpenCV for Processing
- Getting images from a Network Camera
- Kinect
- The state of the kinect is quite in flux. To use the original Kinect, you can find some information here. However, it's currently broken with the new Processing and you have to perform some voodoo operations to get it to work. There are also quite a few examples for the Kinect in Dano's Computational Cameras repo.
- How the kinect works (v1)
- The new Kinect opens up some exciting possibilities. For now, you'll need to use a PC. We have some for checkout at ITP and you can talk to ITP Resident Surya how to get tracking data via OSC. Another option is to use this Kinect v2 Processing library.
- MS Kinect v2 Demo Part 1, MS Kinect v2 Demo Part 2
- More Camera Tracking Stuff from Dano
- Other libraries of note
- Related reading:
- Learning Processing, Chapters 15-16
- Homework: Pixels Project
- Develop a project that uses images and pixels. For this project you should document your work in a blog post in addition to creating the Processing sketch. You can present in class using your laptop or put your sketch into dropbox. Here are some ideas:
- Create a software mirror by designing an abstract drawing machine which you color according to pixels from live video.
- Make a slideshow of images. Check out this Crossfade Effect.
- Make a "VJ turntable" for video. Check out Movie Scrub.
- Use OpenCV face tracking and create a particle system that emanates from a person's mouth or eyes or. . . .?
- Note that only the names in bold (1/2 of the class) on the wiki will present next week. The second half will present the "data" assignment the following week. You should all complete both assignments, however, and of course you can present both weeks if you have a question or something you really want to get feedback on. Feel free to switch with each other or e-mail me if you would like to switch.
- Develop a project that uses images and pixels. For this project you should document your work in a blog post in addition to creating the Processing sketch. You can present in class using your laptop or put your sketch into dropbox. Here are some ideas:
- Pixel project presentations.
- Video Lessons
- Basics of working with Strings
- Word Counting
- Data formats
- Threads
- Discussion of APIs and Databases
- Yahoo Weather library
- Yahoo Weather with XML
- NYTimes API using JSON
- Google image search JSON
- Write your own API, store data in a database using Servi: Coming soon!
- Data Sources and Inspirational Work
- Homework: Data Project
- Develop a project that uses an external data source. For this project you should document your work in a blog post (and link below) in addition to creating the Processing sketch. You can present in class using your laptop or put your sketch into dropbox. Here are some ideas:
- Create a game that saves a high score list to a text file.
- Track personal data over the course of a few days (exercise, sleep, computer use, eating, etc.). Enter the data into a CSV file and visualize.
- Count word frequencies in two different text sources (i.e. two different authors, two different newspapers, two different political speeches) and visualize the concordance.
- Visualize weather data
- If you do not present your pixels assignment, you will present you data assignment.
- Develop a project that uses an external data source. For this project you should document your work in a blog post (and link below) in addition to creating the Processing sketch. You can present in class using your laptop or put your sketch into dropbox. Here are some ideas:
- Sound in Processing!
- P3D: http://processing.org/learning/p3d/
- 3D shapes, vertices
- textures
- lighting
- shaders
- PGraphics
- Examples from Chris Kairalla
- PVector:
- Java
- p5.js
- network communication and OSC
- Homework: Prepare a final project proposal. Create a web page or blog post with title, description, sample imagery, diagrams, Processing code, etc. Be prepared to present your proposal to the class next week.
- ** See your individual section's proposal schedule on your wiki **
- This week you will "user test" your project with fellow classmates. You must have some implementation that you can test completed by this time. User testing can mean different things for different projects. For a game, it can mean that the user tries to play it. For an art piece, it could mean showing it to a classmate and asking for them to say what they think it is about or how it made them feel. We'll show projects in a "one on one" / round robin / speed dating-style session. 5 minutes then switch. You cannot not explain your project, just show and let the user try it and give you feedback. Then you can answer questions. User testing schedule will be provided on a wiki.
- Please add your link to your final project documentation on your section's wiki.