Page 212 - Hacking Roomba
P. 212

Chapter 10 — Using Roomba as an Input Device                  193




                               Listing 10-1 Continued

                                   }
                                 }
                                 else if( drawing )
                                     drawing = false;
                               }



                             Figure 10-2 shows how you might hold Roomba and draw with it, while Figure 10-3 shows a
                             drawing made with RoombaSketch. The ability to change the pen stroke width while drawing
                             enables a much more fluid line than is possible with a normal mouse. You can create very
                             organic drawings. Granted, as Figure 10-2 shows, using Roomba as a mouse requires a bit
                             more physical movement than with a normal mouse, but with some people complaining that
                             computer users don’t get enough exercise, you can now point to the Roomba and say, “That’s
                             my mouse.”









































                             FIGURE 10-2: Using Roomba as a mouse
   207   208   209   210   211   212   213   214   215   216   217