Friday, August 22, 2008

You are getting sleepy, very sleeeepy....

More tinkering with Scalable Vector Graphics (SVG) and Javascript, just for fun. (Unfortunately, if there's anything actually fun about Javascript itself, I still haven't found it.) Anyway, click on the rotating spiral to stop it. Click again to start it in the opposite direction. Another click stops it again. And yet another click starts it rotating in the original direction. And so on.

If your browser supports the Scalable Vector Graphics standard, and Javascript, you should see a rotating spiral. If not, allow me to suggest a change of browsers.

This program works well in Firefox 3 and Safari 3.1.2. It works very well in Safari 4, by which I mean the current WebKit nightlies. (If you're frustrated that the version of Safari in the iPhone has no SVG support, join the club.) In Opera 9.5.2 the program runs slowly (roughly ¼ the speed of Safari 3.1.2) and with stuttering motion. Firefox 2 is much worse; it works, but too slowly to be worthwhile. However, if your browser is running this program well, you can open it in a separate window and scale it to arbitrarily large sizes. (Or not.)

Any easily suggestible people who find themselves hypnotized, are hereby ordered to think for themselves, and to demand rigorous logic from any idea, internal or external. Everyone else may quack like a duck ... you know, if that seems like a good idea.


Come to think of it, They Might Be Giants had more than a few words to say about a spiraling shape, including the following:

And now that you've tried it,
you're back to report
that the spiraling shape
was a fraud and a fake,
You didn't enjoy it,
you never believed it,
there won't be a refund,
you never go back.

No comments:

Post a Comment