View pgstackExample.pde
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
PGraphicsStack pgs = new PGraphicsStack(); | |
class PGraphicsStack { | |
private ArrayList<PGraphics> pgList; | |
private ArrayList<PVector> dimensionsList; | |
PGraphicsStack() { | |
pgList = new ArrayList<PGraphics>(); | |
dimensionsList = new ArrayList<PVector>(); | |
} |
View photoCycle.pde
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
PImage img; | |
int[] b; | |
int p = 0; | |
void setup() { | |
size(500, 333); | |
img = loadImage("me2.jpg"); | |
int l = width * height; | |
b = new int[l]; | |
View c64cam.pde
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
/* | |
c64cam - Commodore 64 Vision with your Camera | |
Jacob Joaquin | |
jacobjoaquin@gmail.com | |
*/ | |
import processing.video.*; | |
Capture cam; | |
int cam_width = 160; |
View fiw_LED_mockup.pde
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
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); |
View radialRecursion.pde
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
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
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
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; | |
} |
View burst.pde
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
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); |
View peppermintTwist.pde
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
// Peppermint Twist | |
// by Jacob Joaquin | |
float nFrames = 60; | |
boolean captureOn = false; | |
float phase = 0.0; | |
ArrayList<AsymRing> aRings; | |
class AsymRing { |
View dotCirclePattern.pde
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
// Untitled | |
// Jacob Joaquin | |
// Built with Processing | |
float L = 20; | |
float offset = 0; | |
void setup() { | |
// size(500, 500, "processing.core.PGraphicsRetina2D"); | |
size(1000, 1000); |
View selfPortrait.pde
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
/* | |
Self Portrait | |
Jacob Joaquin | |
jacobjoaquin@gmail.com | |
tumblr http://jacobjoaquin.tumblr.com/ | |
twitter @jacobjoaquin | |
version 2015/03/11 | |
*/ |
OlderNewer