spiralIcon

JSGS TNT-Designs

Randomly-Decorated Christmas Tree

Your browser does not support HTML5 Canvas

Notes:

Wanna decorate a Christmas tree? Randomly?

It feels like Christmas!

Who wouldn't feel festive with a design made possible by TNTGradient (for the sky and snow) and TNTGenPolygon (for the tree)?

Features:
Comments:

This code is fairly-well documented; look at the source code to see how we pulled this design off.

Even More:

Note that we used an ultra-fancy function, isPointInPoly to see if a shape's center was located inside the polygon we made for the tree. This function is in our tntGraphics source code.