This file contains hidden or 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 processing.serial.*; | |
Serial myPort; | |
String input; | |
int r = 0; | |
int g = 0; | |
int b = 0; |
This file contains hidden or 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
int loop_cnt =0; | |
void setup() { | |
// put your setup code here, to run once: | |
pinMode(13, OUTPUT); | |
pinMode(12, OUTPUT); | |
pinMode(11, OUTPUT); | |
pinMode(10, OUTPUT); | |
} |
This file contains hidden or 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
int rgbR = A0; | |
int rgbG = A1; | |
int rgbB = A2; | |
int axisX = A3; | |
int axisY = A4; | |
int sType = A5; | |
// for color | |
int mapR=0; | |
int mapG=0; |
This file contains hidden or 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
function setup() { | |
createCanvas(720,480); | |
strokeWeight(2); | |
ellipseMode(RADIUS); | |
} | |
function draw() { | |
background(204); | |
// neck |
This file contains hidden or 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
PImage img; | |
float m,t; | |
void setup() { | |
size(500, 500); | |
noFill(); | |
stroke(255); | |
strokeWeight(2); | |
m=0.0; | |
t=0.0; |
This file contains hidden or 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 peasy.*; | |
Flock flock; | |
int boundary = 500; | |
PeasyCam cam; | |
// GUI | |
import controlP5.*; |
This file contains hidden or 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 peasy.*; | |
Flock flock; | |
int boundary = 500; | |
PeasyCam cam; | |
// GUI | |
import controlP5.*; |
This file contains hidden or 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 peasy.*; | |
Flock flock; | |
int boundary = 500; | |
PeasyCam cam; | |
// GUI | |
import controlP5.*; |
This file contains hidden or 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 peasy.*; | |
Flock flock; | |
int boundary = 500; | |
PeasyCam cam; | |
// GUI | |
import controlP5.*; |
This file contains hidden or 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 processing.video.*; | |
Capture myCapture; | |
void setup() { | |
size(640, 480); | |
println(myCapture.list()); | |
} | |
void draw() { |