A brownian motion simulation, with particle color and motion influenced by mouse position. Particles move when the mouse is clicked. Particle color gets lighter when the mouse is above the midline, and darker when below the midline. Horizontal position determines whether the color pushes towards red, green, or blue.
A test of the interface of a motor control sketch.
The sketch will read the mouse's horizontal and vertical position. The horizontal position will become the target rotation for the motor, while the vertical position controls the power used to reach that target.
This is a second iteration of the Lissajous Curve Generator (the original is at http://openprocessing.org/sketch/57613 ). Changes for this version include the line gradually changing colors, centering the curve around the mouse position, and clearing the screen when the mouse button is clicked.
A quick sketch that visualizes the value being returned by the ultrasonic sensor to a NXT 2.0 Mindstorms brick. Note that this sketch requires Jorge Cardoso's NXTComm library, and an active bluetooth connection to your Mindstorms set. Feedback would be great - I'm having problems getting a reliable connection over Bluetooth (works great when I do, but doesn't always happen)
A simple sketch exploring the use of the Physics library by Jeffrey Traer Bernstein. Click the larger dot and the ring of smaller dots will follow. There are 20 in this version; careful motion can cause them to group and ungroup around the master dot.