This program draws a knitted scarf wherever the mouse is clicked. It demonstrates the use of the for loop.

Note: This demo requires a Java enabled browser. If you see this message then your browser either doesn't support Java or has had Java disabled.

Click below to download the source files for Knitting.