Skip to content

Instantly share code, notes, and snippets.

@edsonsoares
edsonsoares / Warholizer (Processing)
Created October 28, 2014 04:44
Warholizer (Processing)
import processing.video.*;
Capture video;
void setup() {
size (1280, 960);
// Define video dimensions as 1/4 of the canvas size
video = new Capture (this, 640, 480);
video.start();
}
@edsonsoares
edsonsoares / gist:fd9691c4ffa55a9160bb
Created November 4, 2014 06:13
Text Visualization
String[] words;
IntDict concordance;
int index = 0;
void setup () {
size (600, 400);
background(0);
String [] lines = loadStrings ("statement.txt");
@edsonsoares
edsonsoares / gist:6eea91ff176c09c445c9
Created November 4, 2014 06:16
Text Visualization 2
String[] words;
IntDict concordance;
int counter = 0;
void setup () {
size (600, 400);
String [] lines = loadStrings ("statement.txt");
@edsonsoares
edsonsoares / Kinect code
Last active January 3, 2016 23:57
Record and Save Junction Positions w/ Kinect
void setup_kinect(){
context = new SimpleOpenNI(this);
if (context.isInit() == false) {
println("Can't Init SimpleOpenNI, maybe the camera is not connected.");
exit();
return;
}
@edsonsoares
edsonsoares / Lettering
Created December 13, 2014 04:21
Code for dance game inspired on Voguing
//CLass Lettering (variable X&Y positions, size and alpha)
class Lettering {
String text;
float x;
float y;
color col;
PFont font;
int fontSize;
#define NEO_PIN 2 // RedBear Blend & RFduino
// Import libraries (BLEPeripheral depends on SPI)
#include <Adafruit_NeoPixel.h>
#include <SPI.h>
#include <BLEPeripheral.h>
#define NEO_PIN 2 // RedBear Blend & RFduino
// Import libraries (BLEPeripheral depends on SPI)
#include <Adafruit_NeoPixel.h>
#include <SPI.h>
#include <BLEPeripheral.h>
/*NEOPIXELS*/