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 flash.ui.MouseCursorData; | |
import flash.ui.MouseCursor; | |
import flash.ui.Mouse; | |
// Mouse Hiding | |
// This is ridiculous | |
cursorData = new MouseCursorData(); | |
var cursorBitmaps:Vector.<BitmapData> = new Vector.<BitmapData>(1, true); | |
cursorBitmaps[0] = new BitmapData(1, 1, true, 0x000000ff); | |
cursorData.data = cursorBitmaps; |
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
##PCL | |
*Algorithms for Point Clouds and Other 3D Data* | |
[Jeff Kramer](http://artandcode.com/3d/presenters/jeff-kramer) | |
aka zarvox | |
[Session Description](http://artandcode.com/3d/workshops/algorithms-for-point-clouds-and-other-3d-data) | |
October 22, 2011 | |
He's seen the Kinect Fusion paper. He knows more about Fusion than ayone I've talked to thus far. |
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
// interface | |
class Skeleton { | |
public: | |
Skeleton(); | |
ofPoint head; | |
ofPoint neck; | |
ofPoint leftShoulder; | |
ofPoint leftElbow; | |
ofPoint leftHand; |
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
#include "ofxQtVideoSaver.h" | |
... | |
// in your class definition | |
ofImage recordingImage; | |
ofxQtVideoSaver saver; | |
... |
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
void mousePressed() { | |
// Upload the current camera frame. | |
println("Uploading"); | |
// First compress it as a jpeg. | |
byte[] compressedImage = compressImage(cam); | |
// Create an ArrayList (which implements Collection) to hold tags | |
ArrayList tags = new ArrayList(); |
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 serial; | |
// TODO Import OSC library | |
int packetCount = 0; | |
void setup() { | |
// Set up serial connection | |
println("Find your Arduino in the list below, note its [index]:\n"); | |
println(Serial.list()); |
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
#!/usr/bin/python | |
# Script to automate downloading CSV files from GoogleDocs | |
# | |
# Expects a config file in the same folder called google_docs_to_file.cfg | |
# with the following format: | |
# | |
# [google_credentials] | |
# email = [email protected] | |
# password = ********* |
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
testButton = new BlockButtonBitmap({ | |
bitmap: Assets.moon, | |
parent: this | |
}); | |
testButton.addEventListener(BlockButtonEvent.BUTTON_DOWN, onButtonDown); |
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
// Before: | |
gerome = new LionWidget({name: AppConstants.GEROME_ID, bitmap: Assets.vote_gerome, parent: this}); | |
column = new LionWidget({name: AppConstants.COLUMN_ID, bitmap: Assets.vote_column, parent: this}); | |
hercules = new LionWidget({name: AppConstants.HERCULES_ID, bitmap: Assets.vote_hercules, parent: this}); | |
plate = new LionWidget({name: AppConstants.PLATE_ID, bitmap: Assets.vote_plate, parent: this}); | |
benin = new LionWidget({name: AppConstants.PAIR_ID, bitmap: Assets.vote_benin, parent: this}); | |
sekhmet = new LionWidget({name: AppConstants.SEKHMET_ID, bitmap: Assets.vote_sekhmet, parent: this}); | |
// After: | |
gerome = new LionWidget({name: AppConstants.GEROME_ID , bitmap: Assets.vote_gerome , parent: this}); |
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
// Create the scroll container | |
var scrollTest:BlockInertialScroll = new BlockInertialScroll({ | |
backgroundColor: Colors.GRAY, | |
showBackground: true, | |
width: 300, | |
height: 500, | |
maxSizeBehavior: BlockBase.MAX_SIZE_CLIPS_VIA_MASK, | |
scrollAxis: BlockInertialScroll.SCROLL_Y, | |
parent: this | |
}); |