Start writing the automatic effect.

This will perform the transformations for the automatic effect of
transforming the path into something like this effect:

http://www.shlomifish.org/art/bk2hp/