Charles Petzold



To Infinity and Beyond

April 10, 2006
New York City

Several years ago I used a few Bezier splines to simulate an infinity sign, and despite the fact that it wasn't very good, I put it in a book and I've been embarrassed about it ever since.

I have now made amends. I coded an infinity sign from Beziers that looks just about flawless to me.

And then I gave it a gradient brush.

And then I animated the gradient brush.

You can run or download InfinityAnimation.xaml or look at it here:

I hope you all forgive me now for the awfulness of my earlier attempt.