I have created a processing library for loading Tango Project icons from a java project built on Apache Batik.
http://tango-project.org
http://dishevelled.org/iconbundle-tango
http://xmlgraphics.apache.org/batik/
The library will load Extra Small and Small icons from 16x16 and 22x22 pixel .png files and will load Large and any other size icons from scalable .svg files. All variants of these icons, for different text directions, sizes, and states (normal, active, mouseover, selected, dragging, and disabled) are available from this icon bundle.
Code:
import org.dishevelled.iconbundle.*;
import org.dishevelled.iconbundle.tango.*;
void setup()
{
IconBundle iconBundle = TangoProject.COMPUTER;
PImage image = ProcessingUtils*.getImage(iconBundle,
IconTextDirection.LEFT_TO_RIGHT,
IconState.NORMAL,
TangoProject.LARGE);
}
void draw()
{
image(pImage, 20, 20);
}
// * actual class name T.B.D.
I still need to work on library packaging with regards to dependencies and licenses, but if you might be interested, please let me know.
Unfortunately this library won't be very useful in an applet environment due to its size, at nearly 10.4 MB.