It was also difficult to attempt to incorporate all the code for the rotation function with the main program, mainly because the two programs implement the Mask differently. The rotation function only draws a set number of points with no further calculations, while the main program draws a set number of points continuously in a loop, recalculating the points each time (that accounts for the flickering that is seen). Therefore, the main program simply calls the rotation program when 's' is pressed -- I found that to be much more doable than to attempt to combine the code for the two programs. For that reason, since the new spinning Mask is in effect a distinct program, it appears in a new window.
I came up with several new ideas and extensions that could be done with future work on the Mask. It would certainly be better to combine the rotation function and the main function. That way a lot of code would not need to be repeated (much of the code of the two functions is the same) and everything would be more efficient. Likewise the rotation axis should be moved more toward the center of the screen so the Mask does not shift horizontally at it spins. It would also be better to have the movie function respond to keyboard input so it can be paused, restarted or ended manually. Another very interesting idea is to have the Mask change colors as it evolves, to make it more aesthetic and even more interesting to learn from.