Lol, that animation in the other post reminded me of a flash EKG machine I made.
http://www.olwest.net/Tig/md5live.html
I imagine you could just define some points in an array if you need to and then use a for loop to display the polygons from point to point as defined by the array; cbkbud is on the right track. You could probably just as easily figure out an algorithm for it, but right now I just don't feel like figuring it out, sorry.