The class covers the basics of Processing and ramps up rather quickly, covering UI creation with controlP5, in the context of creating drawing and animation tools. The last half of the course focuses on integrating a custom hardware controller created with an Arduino to control the animation application created earlier in the course.
There will also be a paid download version with supplementary materials and book chapters with everything edited together nicely. We've also prepared a kit for the Arduino portion of the course that is available on the page linked to above. The kit has everything you need to follow along and is aimed at those new to electronics and requires no soldering.
After looking for help in older forums, this is what helped: 1. Go to menu [ Sketch > Add File... ] 2. Use the dialogue box to locate file Arduino.jar and click OK. The path should look like [ ~/sketchbook/libraries/arduino/library ] where ~ stands for your home directory (or the directory where fol der sketchbook is).
This seems to be an old bug, not solved yet. These are the references in the older P5 forum:
I'm wondering if this problem also occurs with other libraries or just the Arduino library? I'm only somewhat familiar with Ubuntu, so great to know it does all "work" eventually in that environment (no reason it shouldn't really).
If you're interested in testing another library, in the context of this course, you could try installing and running a couple examples from Andreas Schlegel's ControlP5 library which will be used in both weeks 2 and 3:
Also, and maybe this is too obvious, you do need to restart the Processing IDE for it to recognize new libraries placed in the sketchbook/libraries folder. If that's been tried already, and the library is still not available, then it really is a bug with the Processing IDE.
So far, it's the only library that has given me such error. In particular, I had already tried ControlP5 before week2, and it is always imported correctly. Also, yes, restarting the PDE does not help.
However, I do get a problem when running sketches using controlP5 (_any _sketch using controlP5). It is a problem that occurs regard- less the sketch. I wonder if other ubuntu users are experiencing any strange behaviours in this context.
One more thing, concerning sketch drawingToolExtended, which is included in the material of week2. When randomX, or randomY are greater than zero, then lines are drawn even if one clicks within the GUI area (even while one is changing the value of another control). The reason is that lines are being drawn in the whole of the canvas (which happens already from sketch drawingTool). This can be fixed by adding an if in function drawLine(), as follows:
Jesus, that's a nice fix for that "bug" in the software. Also, you may want to check out the filter portion of the extended tool, there is a bug to be fixed there as well. Right now it is calling the filter on the entire application window, including the GUI. If you use get() in combination with a PImage and then apply the filter to the PImage and then display that over the canvas area there is a way to solve the filter bugs.