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
//open code by sid gabriel, no lic disclosed run it in the processing ide http://processing.org/ | |
//working demo posted here: http://sidhubbard.com/2d-graphics-li…depth-of-field/ | |
int counter = 1; | |
int countthresh = 17; | |
boolean videg = true; | |
color backc = color(8,16,96); | |
void setup() { | |
size(777, 333); | |
rectMode(CENTER_DIAMETER); | |
//frameRate(96); |
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
//Authored By Sid Gabriel 2/2012. Open code, no license disclosed. | |
//To run this, just copy and paste into a blank processing window | |
//then hit "play". You can get the processing ide at processing.org | |
//This code was written for processing 2.0a4 and has runs | |
//for me in android mode on a Samsung Galaxy S as well in Java on | |
// the desktop. It doesn't launch in Javascript mode.JAVA2D probably | |
//isn't enough power for all the mapped blending. Make art. | |
int num = 128; | |
int colorL=220, k = 0, j=100, i=200; |
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
import fullscreen.*; | |
import japplemenubar.*; | |
int num = 180; | |
float x, y, z; | |
float lmx,mx,xofset; | |
float lmy,my,yofset; | |
float r, th=0, step,lstep=.1, epi,lepi=400; | |
float m,tm,lm = 9, n1,ln1=1, n2,ln2=0, n3,ln3=0; | |
float b=1, a=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
// open code by Sid Gabriel Hubbard, no lic information provided. | |
// heavily mutated and expanded from Aris Bezas intro to superformula | |
// http://www.openprocessing.org/portal/?userID=7600 | |
int num = 333; | |
int colorL=220, k = 0, j=100, i=200; | |
float x, y, z; | |
float lmx,mx,xofset; | |
float lmy,my,yofset; | |
float r, th=0, step,lstep=.1, epi,lepi=400; |
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
//Adapted from color tracking example from processing.org and James Alliban | |
//Ribbons inspired by code from Erik Natzke | |
//this is an example of a design pattern called ColorStalk | |
//it has a main behavior and a learning behavior with three modes: | |
//Learning mode home shows an unaugmented camera view and pauses all other behaviors | |
//Acquisition mode highlights pixels similar to the pixel under the mouse and on exit from the acquisition mode, sets the color under the mouse to the tracked color. | |
//Show Stalking mode draws ellipses over the closest match in realtime. | |
// | |
// |