Your browser does not support HTML5 Canvas

Notes:

Whadda classy shape: comprised of a TNTDisk and a TNTStar.

TNTMercedes Features and Usage:
Primary Attributes:

7 Parameters:

  • circleCenter: TNTPoint
  • radius: a positive real number
  • diskFillColor: TNTColor as fcolr
  • starFillColor: TNTColor as fcolr
  • diskStroke: a TNTStroke: to set the circle border color as well as the thickness of the perimeter
  • starStroke: a TNTStroke: to set the star border color as well as the thickness of its perimeter
  • rotn: a 'double' that rotates the shape about its center. rotn > 0 ==> counter-clockwise; rotn < 0 ==> clockwise
To Create:

The example above was created by:

goldStroke.lineWidth = 1;
var mercedes = new TNTMercedes(origin, 15, null, 
    yellow, goldStroke, goldStroke, 0);
mercedes.drawTNTMercedes(context);
                                    
To Draw:
mercedes.drawTNTMercedes(context);