Lines Can Be Fun
Graphics can be a lot of fun for students. Well honestly they are fun for a lot of adults. Recently I read a blog post by Cate Huston (Experimenting with a Visual, Activity-Based Curriculum) about some totally visual, graphical project based learning she was working on. Leading off was an image that brought back lots of fond memories for me. You see back in the old days before graphical capable monitors our best, often only, way to do colorful graphics was via dumb plotters. It was with one of those that I discovered computer graphics and with that the interested things one could do with straight lines. For years (dare I suggest decades) my graphical version of “Hello World” has looked something like this.
Don’t you just love the patterns? OK may be it is just me. The code for this example is in Small Basic BTW and looks like this:
Pretty simple. The first version of that I ever wrote was in FORTRAN and I’ve lost count of how many times I have written it since. It’s a simple fun example and it makes a good demonstration of simple looping. But you can get a lot more complicated. You can also have it draw in all four corners like the sample on Cate’s blog post.
One of my favorite programs from college was a program that drew shapes based on how many sides I asked for. OK that was too simple so I then had the program rotate the shape and shrink it until small and then increase the size until full sized again.What did you get? Something like this.
Those are obviously three and seven sided figures. (That program is written in Visual Basic FWIW) There are patterns in both that I never anticipated before I had the computer draw them for the first time. They are caused by moiré patterns BTW. A two sided shape really surprised me but I leave drawing that to the student. In fact it was the surprises that made this program so much fun for me.
Several of my friends experimented with graphing different equations while we were in college. Some of them created some very interesting designs that way. I think when we think graphing equations we look at things that are linear or very simple but a real mathematician can, I am sure, find some equations that are a lot more visually interesting and dare I suggest surprising to students. It seems to me that a bit of a surprise can be a good thing. We need more of it!