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
// Javascript ES6 Class Test | |
// Works in Chrome and p5 on OS X. | |
'use strict'; | |
let rays, | |
nRays = 1000; | |
class DisplayableList extends Array { | |
constructor() { | |
super(); |
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
class RecShape { | |
ArrayList<PVector> points; | |
RecShape() { | |
points = new ArrayList<PVector>(); | |
} | |
RecShape(ArrayList<PVector> copiedPoints) { | |
points = 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
#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; |
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
<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)); |
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
Looper Prototype | |
The Csound Blog | |
Nov 30, 2009 | |
By Jacob Joaquin | |
[email protected] | |
Required Samples: | |
"110 Kool Skool II.wav" by BT | |
Download BT44.zip @ http://www.archive.org/details/BT | |
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/python | |
import csnd6 | |
import mido | |
import sys | |
from csd.pysco import PythonScore | |
from random import random | |
def note_to_freq(n): |
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
/* | |
Self Portrait | |
Jacob Joaquin | |
[email protected] | |
tumblr http://jacobjoaquin.tumblr.com/ | |
twitter @jacobjoaquin | |
version 2015/03/11 | |
*/ |
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
// 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 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
// Peppermint Twist | |
// by Jacob Joaquin | |
float nFrames = 60; | |
boolean captureOn = false; | |
float phase = 0.0; | |
ArrayList<AsymRing> aRings; | |
class AsymRing { |
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 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); |