Animate snowfall in SAS

December 14, 2016

This post was kindly contributed by The DO Loop - go there to comment and to read the full post.

Animated image of falling Koch snowflakes

Out of the bosom of the Air,
    Out of the cloud-folds of her garments shaken,
Over the woodlands brown and bare,
    Over the harvest-fields forsaken,
        Silent, and soft, and slow
        Descends the snow.

“Snow-flakes” by Henry Wadsworth Longfellow

Happy holidays to all my readers!
In my last post I showed how to create a well-known fractal called the Koch snowflake. The snowflake is aptly named because it has six-fold symmetry. But as Longfellow noted, a real snowflake is not stationary, but descends “silent, and soft, and slow.”

As a gift to my readers, I decided to create an animated greeting card entirely in SAS. The animated GIF (click to enlarge) uses some of the SAS techniques that I have blogged about in 2016. The falling and rotating snowflakes were created by using matrix computations in the SAS/IML language. The animated GIF was created by using ODS graphics and PROC SGPLOT.

Create an animated greeting card with #SAS
Click To Tweet

Techniques used to create the animation

If you want to learn how I created this animated GIF with SAS, read on.
I’ve blogged about all the essential techniques in previous posts:

You can download the SAS program that creates the greeting card.

Let me know if you adapt this program to create other animated images.

If you like SAS statistical programming or want to learn more about it, subscribe to this blog. In most articles I show how to use SAS for serious pursuits like statistical modeling, data analysis, optimization, and more. But programming with SAS can also be fun, and sometimes it takes a less-serious application to make people say, “Wow! That’s cool! I didn’t know SAS could do that!”

tags: Fractal, Just for Fun

The post Animate snowfall in SAS appeared first on The DO Loop.

This post was kindly contributed by The DO Loop - go there to comment and to read the full post.

Tags: , ,

Welcome! offers news and tutorials about the various SAS® software packages, contributed by bloggers. You are welcome to subscribe to e-mail updates, or add your SAS-blog to the site.


Dear readers, proc-x is looking for sponsors who would be willing to support the site in exchange for banner ads in the right sidebar of the site. If you are interested, please e-mail me at:
SAS and all other SAS Institute Inc. product or service names are registered trademarks or trademarks of SAS Institute Inc. in the USA and other countries. ® indicates USA registration.