Introduction to Programmingusing the Processing languageLecturer: Mark Huiskes of the Media Technology MSc program at Leiden University Teaching assistants: Amalia Kallergi, Hanna Schraffenberger Course developed by Bas Haring (2004) Alterations by Maarten Lamers (2005, 2006, 2007) Alterations by Mark Huiskes (2008, 2009) Introduction Lecture I Lecture II Lecture III Lecture IV Lecture V Lecture VI Lecture VII Handouts |
|
Programming concepts |
Dealing with images and video in Processing Using libraries |
Reserved words |
PImage loadPixels() brightness() color pixels[] red() loadImage() updatePixels() green() image() copy() blue() import |
Remark |
A fairly good explanation of dealing with media representations in Processing was written by Davide Rocchesso and Pietro Polotti. It discusses representations for images, colors, typographic elements (fonts), and sounds in the Processing language. |
Example VII.4 |
This example shows how to work with live input from a video camera. It uses the JMyron video capture and computer vision library (the standard video library in Processing gives many problems) and pixelizes the video input. Run the code in your Processing environment, and don't forget to change the size() statement to your camera's resolution.Complete source |
Processing.js |
Here's a simple Processing.js example. View the page source to see how simple it is... |