Skip to content
Helper classes for Processing
Java Processing
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.settings
bin/v3ga
build
libs
src/v3ga
v3ga
.classpath
.project
README.md

README.md

processing libs

This library is a repository of code snippets I often use in courses or workshops. They simplify the code to access "not-so-direct" functionalities.

v3ga.vision.FaceOSC

The class (code here) was made to retrieve data provided by FaceOSC in a simple way. It is a direct composition of Dan Shiffman FaceOSCTriangleMesh & Dan Wilcox FaceOSCReceiverGraph code.

import v3ga.vision.*;
import oscP5.*;

FaceOSC face;
void setup()
{
  size(800,600);
  face = new FaceOSC(this);
}

void draw()
{
  face.update();
  if (face.found>0)
  {
    ellipse(face.getEyeLeftPosition().x,face.getEyeLeftPosition().y,20,20);
    ellipse(face.getEyeRightPosition().x,face.getEyeRightPosition().y,20,20);
  }
}

v3ga.sound.Micro

A simple class to connect to an input device (code)

import v3ga.sound.*;
import ddf.minim.*;

Micro mic;

void setup()
{
  size(300,300);
  mic = new Micro(this);
}

void draw()
{
  mic.update();
  background(0);
  fill(255);
  ellipse(150,150,mic.get()*200,mic.get()*200);
}

v3ga.sound.Sound

A simple class to load sounds in Processing in a PImage / PFont fashion (code)

import v3ga.sound.*;
import ddf.minim.*;

Sound sound;

void setup()
{
  sound = Sound.load(this, "Processing.wav");
}

void mousePressed()
{
  sound.play();
}
You can’t perform that action at this time.