Your browser does not support HTML5 Canvas

Notes:

Like a TNTDiamond with curved edges! Parametrically, it looks like:

x = radius*cos3(t), y = radius*sin3(t)	
                        

Learn more about it at Wolfram MathWorld.

TNTAstroid Features and Usage:
Primary Attributes:

5 Parameters:

  • center: TNTPoint
  • radiusToTip: a real number
  • fillColor: TNTColor (can be null for a framework image)
  • borderStroke: a TNTStroke: to set the border color as well as the thickness of the sides
  • rotationDeg: a 'double' that rotates the image about its center.
    rotn > 0 ==> counter-clockwise; rotn < 0 ==> clockwise
To Create:

The example above was created by:

var myAstroid = new TNTAstroid(origin, 15, lightFlesh, null, 0);
myAstroid.drawTNTAstroid(context);
                                    
To Draw: myAstroid.drawTNTAstroid(context);