Your browser does not support HTML5 Canvas

Notes:

Like an infinity symbol, cool! Actually, it is known as a lemniscate. In 'polar coordinates:'

r2 = a2cos(2θ)                                      
                        

Parametrically:

x = lemniscate eqns

y = lemniscate eqns

TNTFigure8 Features and Usage:
Primary Attributes:

5 Parameters:

  • center: TNTPoint
  • a, sideLength: a positive real number
  • fillColor: TNTColor as fcolr
  • borderStroke: a TNTStroke: to set the border color
  • 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:


//blackStroke is built-in to TNT                                        
blackStroke.setStrokeLineWidth(.5);
var myFig8 = new TNTFigure8(origin, 12, null, blackStroke, 0);
myFig8.drawTNTFigure8(context);
                                    
                                    
To Draw: myFig8.drawTNTFigure8(context);