zestyping / openpixelcontrol

A simple stream protocol for controlling arrays of RGB lights.
http://openpixelcontrol.org/
353 stars 103 forks source link

Update processing examples to work with Processing 2 #24

Open HakanL opened 9 years ago

HakanL commented 9 years ago

I'm using Processing 2.2.1 and I can't get the processing samples to run, the import statement doesn't seem to be correct (if I use Tools\Import menu then it adds import src.img2opc.* instead. But even with that, it gets to the new Img2Opc line and throws an exception with ClassNotFoundException.

Firewolf34 commented 3 years ago

Facing the same issue, almost a decade later, with Processing 3.5

I have attempted to recompile the library, but the issue persists. There must be some format changes to the way Processing handles libraries. I imagine the way to go about fixing this would be to look at the Processing Example Library repository, and recompile this project to follow that format.

In any case, if anyone from the future wants a simple fix. Just grab the img2opc.java file in the src folder of the Processing library, and then copy it into a new Processing tab. and remove the package line at the top. Then you can use it. The class which comprises the entire library is just a single file.