I want to take video and mask it within four triangles. These triangles would also end up expanding and contracting to the beat of some music. I'd tried some things but it's not working out. Is there anyone who'd be able to help me out? Sorry in advance if I'm a total noob.
Here's the code I'm working with:
// IMPORT
// video
import processing.video.*;
// define initial variables and video parameters
Capture myCapture;
// audio
import ddf.minim.*;
import ddf.minim.signals.*;
// define initial audio parameters
Minim minim;
AudioPlayer mysound;
AudioMetaData meta;
void setup() {
size(600,600);
background(255);
smooth();
noStroke();
// audio setup
minim = new Minim(this);
mysound = minim.loadFile("02 Dirty Back Road-cut.mp3", 1000);
//change the end number, set a buffersize
meta = mysound.getMetaData();
// loop the audiotrack:
mysound.loop();
// video setup
myCapture = new Capture(this, 750, 600, 30); // set width, height and frame rate here