Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Stats Test Open Spaces</title>
<script type="text/javascript" src="js/vendor/d3.v3.min.js"></script>
<script type="text/javascript" src="js/vendor/topojson.v1.min.js"></script>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.7.1.min.js"></script>
<link rel="stylesheet" href="css/style.css" />
@veev
veev / gist:6906394
Created October 9, 2013 19:02
MPE Ball Receiving Keypress
#include "testApp.h"
#define RECONNECT_TIME 400
//--------------------------------------------------------------
void testApp::setup(){
// initialize app
ofSetFrameRate(30);
ofEnableSmoothing();
ofEnableAlphaBlending();
@veev
veev / testApp.cpp
Created January 28, 2013 04:22
Darkness Map histogram draw test. This shows how drawing to the texture is supposed to work with alpha transparency at first. This property is working on osx (as seen here) but not on iphone. why?
#include "testApp.h"
//--------------------------------------------------------------
void testApp::setup(){
camWidth = 320;
camHeight = 240;
canvasWidth = 320;
canvasHeight = 50;
grabber.setVerbose(true);
float[] volume;
float[] adjClose;
float closeY;
float time;
float index;
float volumeColor;
int width = 512;
int height = 512;
Switched to branch 'veev'
172-26-12-137:AppropriatingNewTechnologies genevieve$ git remote
origin
upstream
172-26-12-137:AppropriatingNewTechnologies genevieve$ git remote https://github.com/stpn/AppropriatingNewTechnologies.git
error: Unknown subcommand: https://github.com/stpn/AppropriatingNewTechnologies.git
usage: git remote [-v | --verbose]
or: git remote add [-t <branch>] [-m <master>] [-f] [--mirror=<fetch|push>] <name> <url>
or: git remote rename <old> <new>
or: git remote rm <name>
#include "testApp.h"
extern "C" {
#include "macGlutfix.h"
}
//--------------------------------------------------------------
void testApp::setup(){
//faceWidth = 200;
//make sure that OpenCV can find a face
if (finder.blobs.size() > 0) {
//then make a new image that is the width and height of the face bounding box
imageFace.allocate(finder.blobs[0].boundingRect.x, finder.blobs[0].boundingRect.y, OF_IMAGE_COLOR_ALPHA);
//unsigned char * origPixels = image.getPixels();
//make a new data type for the new image's pixels
unsigned char * copyPixels = imageFace.getPixels();