cirkel



//This sketch shows how to send graphics to Resolume (or a similar program over Syphon – MAC only)
import ddf.minim.*;

Minim minim;
AudioPlayer groove;

import codeanticode.syphon.*;

SyphonServer server;

void settings() {
size(2000,2000, P3D);
PJOGL.profile=1;

minim = new Minim(this);
groove = minim.loadFile(“Katy Perry – Chained To The Rhythm.mp3”, 2048);
groove.loop();
}

void setup() {

// Create syhpon server to send frames out.
server = new SyphonServer(this, “Processing Syphon”);
}

void draw() {
background(0);
lights();
translate(mouseX, mouseY);
rotateX(frameCount * 0.02);
rotateY(frameCount * 0.02);
fill(mouseX/2,0,900);
if (mousePressed) {
box(100);
} else {
sphere(210);
}
server.sendScreen();
}

Leave a Reply