Skip to content

Instantly share code, notes, and snippets.

@bdaver
bdaver / clientexample.pde
Created May 20, 2013 13:49
VCD 293 Week 12 Workshop : Networking in processing - Send shape and color to the server
import processing.net.*;
Client cli;
String incoming;
int startX;
int startY;
int endX;
int endY;
color myColor = #ffcc00;
@bdaver
bdaver / simplespectrumanalyze.pde
Created April 15, 2013 11:26
Cleaned up version of minim spectrum analyze example using averages
import ddf.minim.analysis.*;
import ddf.minim.*;
Minim minim;
AudioPlayer jingle;
FFT fftLin;
float height3;
float height23;
@bdaver
bdaver / morph.pde
Last active December 15, 2015 09:19
VCD 293 Design by Code Week 7 Chalange Morph generator using source and modifier images
PImage sourceImg;
PImage modifierImg;
PImage resultImg;
void setup() {
size(500,500);
noLoop(); // disables draw function
sourceImg = loadImage("bruce.png");
modifierImg = loadImage("modifier2.png"); // need to supply gradient image containing red and green channel values
resultImg = createImage(width,height,RGB);
background(0);
@bdaver
bdaver / LeapMotionTest.pde
Last active December 15, 2015 00:48
Leap Motion Processing Library Exercise on some basic Events and Finger Handling (https://github.com/mrzl/LeapMotionP5) Dirty-straightforward.
import com.onformative.leap.LeapMotionP5;
import com.leapmotion.leap.Finger;
import com.leapmotion.leap.Frame;
LeapMotionP5 leap;
void setup() {
size(500, 500);
leap = new LeapMotionP5(this);
frameRate(100);
@bdaver
bdaver / ArrayColorRandom.pde
Last active December 14, 2015 04:39
VCD 293 Design by Code Week 3 Workshop Example Arrays, Colors, Random
// VCD 293 Design by Code
// Week 3 Workshop Example
// Arrays, Colors, Random
// Made with processing
color[] colors = { #28251E, #49B4A2, #8FD783, #CEEF24, #E9DEC0 };
void setup() {
size(600,600);
background(255);