This file contains hidden or 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 hidden or 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 hidden or 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
int c = 255; | |
float angle = 0; | |
void setup() { | |
size(500, 500); | |
noStroke(); | |
} | |
void draw() { | |
background(0); |
This file contains hidden or 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
ArrayList<Float> params; | |
void setup() { | |
size(1200, 1200); | |
params = new ArrayList<Float>(); | |
params.add(200.0); | |
params.add(0.00001); | |
params.add(100.0); | |
params.add(50.0); | |
params.add(20.0); |
This file contains hidden or 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 hidden or 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 | |
[email protected] | |
*/ | |
import processing.video.*; | |
Capture cam; | |
int cam_width = 160; |
This file contains hidden or 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 hidden or 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 hidden or 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
#!/usr/bin/env python | |
import re | |
import sys | |
level = sys.stdin.read() | |
flat = [] | |
output = [] | |
for L in [L.rstrip().replace(' ', '-') for L in level.splitlines()]: |
This file contains hidden or 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
#include <Adafruit_NeoPixel.h> | |
#define NUM_LEDS 10 | |
#define PIN 0 | |
Adafruit_NeoPixel strip = Adafruit_NeoPixel(NUM_LEDS, PIN, NEO_GRB + NEO_KHZ800); | |
void setup() { | |
strip.begin(); | |
setAll(strip.Color(255, 0, 0)); |