Thursday, November 5, 2009, 11:44 AM
Posted by Ruben Steins
Charles Petzold has posted yet another cool WPF post on his blog. The Random Globules Application in Silverlight has a mesmerizing effect:Posted by Ruben Steins

What I like most about Petzold's posts is that he always goes the extra mile in explaining all about the fancy algorithms he's used to achieve his results:
To keep them simple, I decided that each globule would be a three-segment quadratic Bezier curve, defined by six points — alternating curve points and control points. To keep the circumference of the composite curve smooth, each pair of control points and the curve point between them should be colinear, that is, lie on the same line.




( 2.9 / 17 )

Calendar



