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
//code by: | |
// https://github.com/Jared-Sprague | |
var spriteSheet; | |
var tall = 220;; | |
var short = 260; | |
var plantPosX = tall;//our plant position defaults to our tall position | |
function setup() { | |
createCanvas(600, 600); | |
background(200); | |
spriteSheet = loadImage('image/sprite_sheet.jpg'); |
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
//define an object that holds lyrics and time codes | |
//key = time in millis | |
//val = "lyrics" | |
var timecodes = { | |
100 : "One, two, three! My baby don't mess around Because she loves me so This I know fo sho!", | |
5000 : "But does she really wanna But can't stand to see me walk out the door Don't try to fight the feeling Because the thought alone is killin' me right now Thank God for Mom and Dad For sticking to together Like we don't know how" | |
}; | |
//function to process and schedule lyrics. | |
//we pass an object as parameter to this function |
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
var branches = [];//holds a list of p5.Vectors | |
var trunkSize = 10.4; | |
var currentBranchLocL = null; | |
var currentBranchLocR = null; | |
function setup() { | |
createCanvas(windowWidth, windowHeight); | |
} | |
function draw() { |
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
var theta = 0; | |
function setup(){ | |
createCanvas(windowWidth, windowHeight, 'webgl'); | |
} | |
function draw(){ | |
background(250, 250, 250, 255); | |
translate(-100, 0, -1000); | |
push(); |
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
#!/bin/sh | |
echo "shutting down [your app name] for the day" >> /Users/SI/Dropbox/InstallationLogs/[your app name here]/ProcessLog.txt | |
osascript -e 'tell application "[your app name]" to quit' | |
echo "successful shutdown at $(date)" >> /Users/SI/Dropbox/InstallationLogs/[your app name here]/ProcessLog.txt |
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
/* | |
Copyright (c) 2010, Hector Sanchez-Pajares | |
Aer Studio http://www.aerstudio.com | |
All rights reserved. | |
modified for Blobs by Indefinit, Kevin Siwoff, 2015 | |
This is a block for OSC Integration for Cinder framework developed by The Barbarian Group, 2010 | |
Redistribution and use in source and binary forms, with or without modification, are permitted provided that |
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
/* | |
Copyright (c) 2010, Hector Sanchez-Pajares | |
Aer Studio http://www.aerstudio.com | |
All rights reserved. | |
modified for Blobs by Indefinit, Kevin Siwoff, 2015 | |
This is a block for OSC Integration for Cinder framework developed by The Barbarian Group, 2010 | |
Redistribution and use in source and binary forms, with or without modification, are permitted provided that |
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
// WS282x programmer | |
// Takes some commands from the serial and allows you to program WS282x LED modules | |
// | |
// Should work with any 168, 328, or 32U4 based Arduino. | |
// | |
// to program a pixel, type into your Serial port: | |
// p n | |
// | |
// where n = pixel address number starting at 1 | |
// |
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
string bufferToString( const cinder::Buffer& buffer ) | |
{ | |
string s( static_cast<const char*>( buffer.getData() ) ); | |
if ( s.length() > buffer.getDataSize() ) { | |
s.resize( buffer.getDataSize() ); | |
} | |
return s; | |
} | |
uint8_t* bufferToUint8(const cinder::Buffer& buffer) |
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
Voxel* VoxelMapperApp::findVoxel(btRigidBody* pBody) { | |
// search through our list of gameobjects finding | |
// the one with a rigid body that matches the given one | |
for (std::vector<Voxel>::iterator iter = mVoxels.begin(); iter != mVoxels.end(); ++iter) { | |
if ((iter)->getPhyObj().get()->getRigidBody().get() == pBody) { | |
// found the body, so return the corresponding Voxel object | |
return &(*iter);//this feels janky! | |
} | |
} | |
return 0; |