Swirling Squares is a graphical toy that shows pulsing, swirling squares directly on your desktop, outside of a normal window. Click on the red square to quit the program. Though it looks complex, the actual code for this sample is very simple. The code creates a transparent frame that contains a group. The group contents are 10 rectangles rotated around a center point. The angle of the rotation for each square is bound to a single angle variable. Each square's distance from the center is also bound to the angle.
Comments