Your browser does not support HTML5 Canvas

Notes:

Another 'cool' polar equation!

r = a*cos(θ/2)
                        
TNTDoubleLoop Features and Usage:
Primary Attributes:

5 Parameters:

  • center: TNTPoint
  • a: a positive real number; the half-width...distance from the center to the horizontal edge
  • fillColor: TNTColor as fcolr
  • borderStroke: a TNTStroke: to set the loop border color as well as the thickness of the 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:

var myDoubleLoop = new TNTDoubleLoop(origin, 15, green, blackStroke, 0);
myDoubleLoop.drawTNTDoubleLoop(context);
                                    
To Draw:
myDoubleLoop.drawTNTDoubleLoop(context);