RGB Control With Processing

Adam Spiers just sent me the source code for his first “Hello World” x-OSC project showing how to control the on-board RGB LED using Processing. In his demovideo, he shows the LED colour tracking the mouse cursor as it moves over a 256×256 pixel colour wash. We don’t have a message sending example for Processing yet so hopefully this example will be of use to others getting started with x-OSC. Thanks Adam!

The Processing sketch requires the oscP5 library to send and receive OSC messages. To use this library, copy the entire oscP5 directory (.zip available in theproject repository) into a directory named “libraries” in Processing Sketchbook location (see: File > Preferences > Sketchbook location). A tutorial for sending and receiving OSC messages in Processing is available on the codasign website.

Windows 7 Firewall: When running the processing application for the first time you will be prompted to grant network access to Java by Windows Firewall. Java must be given access Public access else network communication will not be possible. These permission can be modified any time through Control Panel > Windows Firewall > “Change settings”.

Open-source resources are released under the Creative Commons Share-alike 3.0 unless an alternative license is specified in source files.