xxxxxxxxxx
61
/*
65 65
\ /
\ /
\ /
\ /
\ /
\ /
\ /
\ /
\/
||
---------------------------------------------------------------------------------
| |
| ******************* |
| * * >>> 65daysofstatic |
| * ////// ////// * >> yrCodeIsBadAndYouShouldFeelBad |
| * / / * > noRightsReserved2014 |
| * ////// ////// * |
| * / / / * |
| * ////// ////// * |
| * * |
| ******************* |
| |
| |
| >>> instructions for getting started: |
| |
| 1. select all the code in this window (control-a/cmd-a). |
| 2. plug your computer into a massive p.a. |
| 3. hit play. |
| 4. listen. |
| 5. hack it to pieces, all music is in static.js. |
| 6. tweet us @65dos if you rmx it or anything. |
| |
| more info on how to use gibber here: http://gibber.cc/ |
| more info on us here: http://www.65daysofstatic.com * twitter: @65dos |
| h/t @yaxu for pointing us toward gibber in the first place. |
| |
---------------------------------------------------------------------------------
*/
let fft, fftSize = 256
function setup() {
createCanvas(400,400)
static()
fill(255,255,255,64)
stroke(200)
}
function draw() {
const [low,mid,high] = analysis( fft )
background(0)
setCenter(width/2, height/2);
switch(STAGE) {
case 0: noFill(); polarEllipses(low/4, mid/2, mid/2, high); break;
case 1: fill(255,255,255,32); polarTriangles(low/4, mid/2, high*2); break;
default: noFill(); polarPolygons(low/4, mid/16, high/2, 125);
}
}