|
2 | 2 | =======
|
3 | 3 |
|
4 | 4 | virtual paper cut and fold snowflake simulation
|
| 5 | + |
| 6 | +## history |
| 7 | + |
| 8 | +This little exercise in interactive geometry was started as a flash "movie" |
| 9 | +written in ActionScript in 2002. But flash was really designed for |
| 10 | +animating sprites, and not for handling scripted primitive drawing commands |
| 11 | +(lines and polygons). So the java applet version was born, and development |
| 12 | +on that continued for a couple of years, during which time many features |
| 13 | +got added, including a gallery where you could save snowflakes for others |
| 14 | +to see, and even download a pdf version of your snowflake. |
| 15 | + |
| 16 | +Over the years, applet technology has become even less widespread and more |
| 17 | +finicky, and we finally have a decent alternative to applets for |
| 18 | +interactive animation on the web: html5 canvas. So now in 2013 it seemed |
| 19 | +maybe the time had come to rejuvenate cutfold. The current incarnation is a |
| 20 | +port to javascript and canvas. |
| 21 | + |
| 22 | +The basics (folding) is now working, but there is still some work needed to |
| 23 | +wire up cut and unfold. |
| 24 | + |
| 25 | +## how to use |
| 26 | + |
| 27 | + You can *fold* the paper by (clicking fold and) dragging a line segment |
| 28 | +across it. Then clicking on one side or the other of your fold will push |
| 29 | +that side down, executing the fold. |
| 30 | + |
| 31 | + You can *cut* the paper by (clicking cut and) drawing a series of |
| 32 | +connected lines by repeatedly clicking and moving the mouse; the cutting is |
| 33 | +finalized with a *double-click* (or by crossing your own cutting |
| 34 | +line). |
| 35 | + |
| 36 | + You can *discard* pieces of paper. Be careful where you click: There is |
| 37 | +only one level of undo. |
| 38 | + |
| 39 | + You can *unfold* - this unfolds the most recent fold, and can be repeated until the paper is completely flat. |
| 40 | + |
0 commit comments