Everytime you visit or refresh this site you get a new snowflake.
The snowflakes are drawn using HTML5 canvas. Each of the six spokes of
the snowflake have five bits that branch out and the properties of each
of those are controlled by three random numbers. Once a spoke is
generated, it’s repeated by rotating the canvas 60 degrees five times
for a total of six spokes. Then, four pairs of hexagons, also controlled
by random numbers are added on top. Altogether, you get a snowflake.
No comments:
Post a Comment