Grafitti recognizer

Below on this screen, you will see a drawing area that allows you to draw with your mouse. You can use this to create strokes, i.e. a sequence of (x, y) points on the screen. As you draw, the points are stored in a list of lists in Racket format.

I don't know if you care, but, if you do, this webpage leverages JavaScript to create this code. You can inspect the JavaScript code by right clicking on the page and selecting "View source". From there, you can see how it works, save the code into an html file, run it on your own computer, and even modify it if you'd like. It uses very basic JavaScript.

Your default exercise involves creating a simple, unistroke gesture recognizer in Racket. To do this, you need a series of templates, which we have already provided in the file grafitti.rkt. The gestures that this recognizer should recognize are the gestures from the Palm Grafitti Gesture Set. The Palm Pilot was the first, widely successful, handheld computer. Here is the gesture set.

Draw With Mouse Here
Mouse Points
Thumbnail (right click to copy)