Homework 7
a. Multiple Color Tracking
//do the second color
if (oneColorIsSet) {
if (x >= 0 && x < 320 && y >= 0 && y < 240){
int pixel = y * 320 + x;
hue2 = videoGrayscaleHueImage2.getPixels()[pixel];
sat2 = videoGrayscaleSatImage2.getPixels()[pixel];
val2 = videoGrayscaleBriImage2.getPixels()[pixel];
}
}
This code tracks 2 colors.
b. Face tracker
void testApp::eyes(float x, float y, float w, float h) {
ofSetColor(0, 0, 0);
float newx = ofMap(x, 0, 320, 65, 200);
float newy = ofMap(y, 0, 240, 84, 112);
ofEllipse(newx - 40, (newy+h)-10, w/7, h/2);
ofEllipse(newx + 270, (newy+h)-10, w/7, h/2);
}
The not-so-friendly cat's eyes follow the face detected. The code isn't setup to handle faces detected beyond the range demonstrated and might glitch out.
b. 5 examples of unique alternative drawing interfaces
Bomomo is a drawing interface created in javascript by Philipp Lenssen. The tools/brushes are very unique and interesting.
ScribbleBots are drawing bots created by Jon Cumberpatch. The allow users to create drawing and share them over the internet. Other users can reproduce these drawings by downloading them to the ScribbleBot.
Line Rider is a drawing game in which the user can draw lines for the rider to ride.
Qbesq is a flash drawing interface which can be used to draw some interesting fractals.
Kinectic Sketch is let's the user draw shapes in motion. There are some interesting options for motion, blending and color palettes to choose from.




