Snowflakes with Turtle Graphics

Happy Winter Solstice!

This year, in the spirit of the winter holidays (and in lieu of holiday cards), I thought I’d share a few digital snowflakes created with Turtle Graphics. Turtle Graphics is a Python module (a file full of handy code you can import and use in your programs) that can be used to create interesting shapes and pictures.

A wee bit of code:

Create_Snowflake

Please give me a shout in the comments if you see anything that looks a little strange here.

And voila! It’s starting to feel more like winter already. The first snowflake (below, left) was created using the code above. And with a few simple tweeks, endless combinations!

final code makes this   Another_Turtle_Graphics_Snowflake   And_Another_Turtle_Graphics_Snowflake

Check out the interactive edition of How to Think Like a Computer Scientist for more instruction on Turtle Graphics and learning Python. I started working through the book a couple of weeks ago in preparation for my next big coding adventure, Hackbright Academy (thrilled to start in t-minus 4 weeks), and I’m hooked!

Wishing you all a wonderful holiday season. Cheers to longer days from here on out.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s