Laser-cut Algorithmic Snowflakes

Introduction: Laser-cut Algorithmic Snowflakes

Follow these instructions to create vector diagrams of snowflakes and use a laser cutter to cut them from acrylic, wood, or paper.  The snowflakes are generated using a randomized algorithm, so no two will be alike.

Before you begin, make sure you have Processing and Inkscape installed on your computer.  Processing is available at, and Inkscape is available at

Step 1: Create the Program

Copy-and-paste or download the code from the following link as "algorithmic_snowflakes.pde".

Step 2: Generate Snowflakes

Run the sketch using Processing. A window will pop up displaying a randomized snowflake. Clicking on the image will save that image to the sketch folder and generate a new snowflake. Click as many times as you want to continue generating more snowflakes.

Note the parameters SIZE, DEPTH, and THICKNESS, in case you want to change these. SIZE affects how big the snowflake is. DEPTH determines how many times the fractal-like algorithm iterates, which affects how intricate the snowflakes are. THICKNESS affects the thickness of the branches.

Step 3: Embed the Images in Inkscape

Open a new document in Inkscape.  Drag the snowflake *.png files from the sketch folder onto the Inkscape document.  Inkscape will give you the choice of either embedding or linking to the images.  Choose "embed."

Step 4: Convert the Images to Vectors

Currently the snowflakes are bitmapped images, but in order to laser cut them, we need to convert them to vectors.  Select one of the snowflakes you wish to laser cut.  Choose "Trace Bitmap" from the "Path" menu.  Click "Okay" in the window that pops up, and then close the pop-up window.  This creates a vectorized copy of the snowflake you had selected.  Drag the vectorized snowflake away from the bitmapped original, and then delete the original.

Repeat this process for all the snowflakes you wish to laser cut.

Step 5: Save Your Work and Laser Cut the Snowflakes

Save your work in a file format recognized by the laser cutting software you plan to use.  Many laser cutters recognize *.dxf files.  If you reopen the *.dxf file using Inkscape, it is clear that the snowflakes are now vector graphics.

The specifics of how to use a particular laser cutter will vary, so make sure you either know what you're doing or ask someone for help.  Make sure you choose the laser cutter settings carefully, because acrylic snowflakes are tend to be fragile - note the cracked branch in the photo!

Happy holidays!

Holiday Contest

Participated in the
Holiday Contest

1 Person Made This Project!


  • Exercise Speed Challenge

    Exercise Speed Challenge
  • Pocket-Sized Speed Challenge

    Pocket-Sized Speed Challenge
  • Super-Size Speed Challenge

    Super-Size Speed Challenge

2 Discussions


1 year ago

This is absolutely brilliant. Just added a little laser to my CR20 and this is a fab tutorial. I'm using Laserweb 4 to generate the gcode from the svg snowflakes. Everything works beautifully - so impressed with your Processing code! My 9yr old is going to love putting them together for a mobile this Christmas. I'm going to try some fancy handmade papers for the cut outs. Many, many thanks. :-)


6 years ago on Introduction

What a great idea! May try this for small gifts next year :)