Skip to content

Instantly share code, notes, and snippets.

View sidgabriel's full-sized avatar

Sid Gabriel Hubbard sidgabriel

View GitHub Profile
@sidgabriel
sidgabriel / spotting.pde
Created February 14, 2012 01:34
2D GRAPHICS LIBRARY, 3D LIGHTING, DEPTH OF FIELD
//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);
@sidgabriel
sidgabriel / Caudex_Symbiosis.pde
Created February 9, 2012 21:15
A really pretty processing sketch that uses lots of math and blending
//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;
@sidgabriel
sidgabriel / Caudex_Sol.pde
Created February 9, 2012 03:34
Applying Effects to Live Solar Imaging In Processing
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;
@sidgabriel
sidgabriel / gist:1744978
Created February 5, 2012 11:54
Generative Art From The Math of The Rodin Vortex, The Fibonacci Spiral, and The Gielis Superformula
// 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;
//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.
//
//