Skip to content

Instantly share code, notes, and snippets.

View jacobjoaquin's full-sized avatar

Jacob Joaquin jacobjoaquin

View GitHub Profile
@jacobjoaquin
jacobjoaquin / pgstackExample.pde
Created February 28, 2014 15:58
PGraphicsStack Proof of concept. Use a stack for PGraphics like pushMatrix() and pushStyle() in Processing.
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 March 18, 2014 01:03
Photo to experimental animation.
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 March 19, 2014 14:38
Processing sketch. Translates camera vision into a commodore.
/*
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 22:38
A quick mockup to see if LED strips aligned at an angle could produce readable scrolling type.
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 October 5, 2014 15:17
Radial Recursion Experiment
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);
@jacobjoaquin
jacobjoaquin / pacIllusion.pde
Created October 29, 2014 04:38
Pac Illusion
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 December 17, 2014 17:14
Burst - Processing Experiment
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 December 22, 2014 15:29
Processing Sketch - Peppermint Twist
// 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 December 29, 2014 17:17
Untitled. Built with Processing.
// 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 August 29, 2015 14:16
Pixel Self Portrait
/*
Self Portrait
Jacob Joaquin
jacobjoaquin@gmail.com
tumblr http://jacobjoaquin.tumblr.com/
twitter @jacobjoaquin
version 2015/03/11
*/