Skip to content

Instantly share code, notes, and snippets.

View jacobjoaquin's full-sized avatar

Jacob Joaquin jacobjoaquin

View GitHub Profile
@jacobjoaquin
jacobjoaquin / p5_es6_class_test.js
Created December 20, 2015 00:39
Processing p5.js + Javascript ES6 Test Sketch
// Javascript ES6 Class Test
// Works in Chrome and p5 on OS X.
'use strict';
let rays,
nRays = 1000;
class DisplayableList extends Array {
constructor() {
super();
@jacobjoaquin
jacobjoaquin / RecShape.pde
Created December 10, 2015 17:26
Recursive Animated Pentagon in Orange
class RecShape {
ArrayList<PVector> points;
RecShape() {
points = new ArrayList<PVector>();
}
RecShape(ArrayList<PVector> copiedPoints) {
points = new ArrayList<PVector>();
@jacobjoaquin
jacobjoaquin / fiwArtHopSign.ino
Created October 2, 2015 12:58
LED Routines for Fresno Ideaworks ArtHop Sign.
#include <Adafruit_NeoPixel.h>
#ifdef __AVR__
#include <avr/power.h>
#endif
#define N_PIXELS 240
#define SCANNER_LENGTH 30
const int nPixels = 240;
int blinkPin = 11;
@jacobjoaquin
jacobjoaquin / index.html
Last active August 29, 2015 14:26
processing.js test
<html>
<head>
<title>Processing.js Test</title>
<head>
<script src="processing.min.js"></script>
<script type="text/processing" data-processing-target="processing-canvas">
size(400, 400);
void draw() {
line(random(width), random(height), random(width), random(height));
@jacobjoaquin
jacobjoaquin / looper_prototype.csd
Created April 20, 2015 15:33
Looper Prototype - From the Csound Blog
Looper Prototype
The Csound Blog
Nov 30, 2009
By Jacob Joaquin
jacobjoaquin@gmail.com
Required Samples:
"110 Kool Skool II.wav" by BT
Download BT44.zip @ http://www.archive.org/details/BT
@jacobjoaquin
jacobjoaquin / rtpysco.py
Created April 19, 2015 19:15
Csound Python Score Real-time Performance Prototype
#!/usr/bin/python
import csnd6
import mido
import sys
from csd.pysco import PythonScore
from random import random
def note_to_freq(n):
@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
*/
@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 / 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 / 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);