What a great little demo ! It works well on MS Windows, too (best viewed as "full screen") - apart from some inconsequential warnings/errors (from freeglut) that are displayed to the console when the TriD graphics window is closed and the script exits:
freeglut (electron.pl): glutSetWindow(): window ID 1 not found!
freeglut (electron.pl): ERROR: Function <glutSwapBuffers> called wit
+h no current window defined.