Skip to content

Instantly share code, notes, and snippets.

Avatar

Jacob Joaquin jacobjoaquin

View GitHub Profile
@jacobjoaquin
jacobjoaquin / pgstackExample.pde
Created Feb 28, 2014
PGraphicsStack Proof of concept. Use a stack for PGraphics like pushMatrix() and pushStyle() in Processing.
View pgstackExample.pde
PGraphicsStack pgs = new PGraphicsStack();
class PGraphicsStack {
private ArrayList<PGraphics> pgList;
private ArrayList<PVector> dimensionsList;
PGraphicsStack() {
pgList = new ArrayList<PGraphics>();
dimensionsList = new ArrayList<PVector>();
}
@jacobjoaquin
jacobjoaquin / photoCycle.pde
Created Mar 18, 2014
Photo to experimental animation.
View photoCycle.pde
PImage img;
int[] b;
int p = 0;
void setup() {
size(500, 333);
img = loadImage("me2.jpg");
int l = width * height;
b = new int[l];
@jacobjoaquin
jacobjoaquin / c64cam.pde
Created Mar 19, 2014
Processing sketch. Translates camera vision into a commodore.
View c64cam.pde
/*
c64cam - Commodore 64 Vision with your Camera
Jacob Joaquin
jacobjoaquin@gmail.com
*/
import processing.video.*;
Capture cam;
int cam_width = 160;
@jacobjoaquin
jacobjoaquin / fiw_LED_mockup.pde
Created May 20, 2014
A quick mockup to see if LED strips aligned at an angle could produce readable scrolling type.
View fiw_LED_mockup.pde
PGraphics theMask;
PImage imageMask;
String s = "Fresno Ideaworks LED Panel Test";
int xOffset;
int xInc = 200 / 11;
void generateMask() {
theMask = createGraphics(width, height);
theMask.beginDraw();
theMask.stroke(255);
@jacobjoaquin
jacobjoaquin / radialRecursion.pde
Created Oct 5, 2014
Radial Recursion Experiment
View radialRecursion.pde
void setup() {
size(500, 500);
noLoop();
}
void draw() {
background(255);
translate(width / 2, height / 2);
stroke(0, 96);
rc(new PVector(0, 0), 0, PI, 24, 14);
View pacIllusion.pde
float phasor = 0.0;
float phasorInc = 0.001;
float nFrames = 45;
void setup() {
// size(500, 500, "processing.core.PGraphicsRetina2D");
size(500, 500);
phasorInc = 1 / nFrames;
}
@jacobjoaquin
jacobjoaquin / burst.pde
Created Dec 17, 2014
Burst - Processing Experiment
View burst.pde
void vGrid(PVector p1, PVector p2, PVector p3, int n) {
vGrid(p1.x, p1.y, p2.x, p2.y, p3.x, p3.y, n);
}
void vGrid(float x1, float y1, float x2, float y2, float x3, float y3, int n) {
beginShape(LINES);
for (int i = 0; i < n; i++) {
float interp = float(i) / float(n - 1);
float px1 = lerp(x1, x2, interp);
float py1 = lerp(y1, y2, interp);
@jacobjoaquin
jacobjoaquin / peppermintTwist.pde
Created Dec 22, 2014
Processing Sketch - Peppermint Twist
View peppermintTwist.pde
// Peppermint Twist
// by Jacob Joaquin
float nFrames = 60;
boolean captureOn = false;
float phase = 0.0;
ArrayList<AsymRing> aRings;
class AsymRing {
@jacobjoaquin
jacobjoaquin / dotCirclePattern.pde
Created Dec 29, 2014
Untitled. Built with Processing.
View dotCirclePattern.pde
// Untitled
// Jacob Joaquin
// Built with Processing
float L = 20;
float offset = 0;
void setup() {
// size(500, 500, "processing.core.PGraphicsRetina2D");
size(1000, 1000);
@jacobjoaquin
jacobjoaquin / selfPortrait.pde
Last active Aug 29, 2015
Pixel Self Portrait
View selfPortrait.pde
/*
Self Portrait
Jacob Joaquin
jacobjoaquin@gmail.com
tumblr http://jacobjoaquin.tumblr.com/
twitter @jacobjoaquin
version 2015/03/11
*/