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>(); | |
} |
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]; | |
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; |
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); |
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); |
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; | |
} |
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); |
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 { |
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); |
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