This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import ddf.minim.*; | |
import processing.serial.*; | |
AudioPlayer[] sounds = new AudioPlayer[7]; | |
Minim minim; | |
boolean firstContact = false; | |
boolean switch1Ready = false; | |
boolean switch2Ready = false; | |
Serial myPort; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Feather { | |
PVector loc; | |
PVector velo; | |
PVector accel; | |
float lifespan; | |
PImage img; | |
float t, a; | |
Feather(PVector l, PImage img_) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*Intro to PComp Mid-term Fall 2012 | |
Liz Khoo, Natalie Tschechaniuk, Katie Adee | |
-----Responsive Moire Window Shade----- | |
Parts: | |
- 18"x18" frame with dowels | |
- 6-position rotary switch | |
- Parallax PIR motion sensor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PFont font; | |
PImage centralPark; | |
int counter = 0; | |
CPWeather wg; | |
Clouds[] littleClouds; | |
int count; | |
void setup() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//ARDUINO CODE | |
//adapted from ITP's Intro to Physical Computing class Fall 2012 | |
const int switchPin1 = 2; | |
const int switchPin2 = 4; | |
int potPin = A0; | |
int switch1Value = 0; | |
int switch2Value = 0; | |
int potValue; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//ARDUINO CODE | |
//Most of the code courtesy of ITP's Intro to PComp Class | |
//for skunk hat with two FSRs | |
const int switchPin = 2; | |
int switchValue = 0; | |
int fsr1Value = 0; | |
int fsr2Value = 0; | |
void setup() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//crystal raindrops with video | |
import processing.video.*; | |
Capture video; | |
int totalDiamonds = 10; | |
Diamond[] ourDiamonds = new Diamond[totalDiamonds]; | |
void setup() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Duck[] myDuck = new Duck[3]; | |
Shotgun theGun; | |
Bullet theBullet; | |
PImage rubberduck; | |
color water = color(47, 108, 180); | |
PFont PTSans; | |
boolean gameOver = false; | |
void setup() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//butter machine for Arduino | |
#include <Servo.h> //add servo motor library | |
const int photoPin = A0; //input pin for photosensor | |
const int ledPin = 9; | |
int photoMin = 1023; | |
int photoMax = 0; | |
int photoValue = 1023; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PFont PTSans; | |
color water = color(47, 108, 180); | |
PImage duck1, duck2, duck3; | |
float duck1x, duck2x, duck3x; | |
float duck1y, duck2y, duck3y; | |
float dspeed1, dspeed2, dspeed3; | |
boolean duckDraw1 = true, duckDraw2 = true, duckDraw3 = true; // decides whether to draw the duck | |
boolean duckHit1 = false, duckHit2 = false, duckHit3 = false; // tells me if the duck has been hit |
NewerOlder