Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
IN THIS CHAPTER
Our first project consists of a Drawbot (Figure 1-1), a small robot that rolls around with a marking pen trailing behind it, leaving a line that traces the path the Drawbot took. We’ll program the robot to react to obstacles by turning away and trying another path, allowing it to keep drawing even after it hits an obstruction.
We’ll tackle a very basic method of creating art. Essentially, we’ll program the robot to respond to input from its touch sensor to create a series of circles, arcs, and spirals, as seen in Figure 1-2.