Your browser does not support HTML5 Canvas

Notes:

A 'polar coordinates' type shape; the second of 2 variations of this type shape. Study the variations here, and compare to TNTLimaçon. Learn more about this shape at Mathworld.

r = b + a*cos(θ)
                        
TNTLimaçon2 Features and Usage:
Primary Attributes:

6 Parameters:

  • center: TNTPoint
  • a: a decimal (known as a 'double' in code)
  • b: a decimal (known as a 'double' in code)
  • fillColor: TNTColor as fcolr
  • borderStroke: a TNTStroke
  • 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 aLimacon = new TNTLimacon2(origin, 8, 4, yellow, blackStroke, 0);
aLimacon.drawTNTLimacon2(context);
                                    
To Draw: aLimacon.drawTNTLimacon2(context);
More:

This is like a TNTLimaçon, except it only has 6 parameters: If there is an inner loop, it's not filled with color.

Experiment with values of a and b:

  • b ≥ 2a: convex limaçon
  • 2a > b > a: dimpled limaçon
  • b = a: the shape degenerates to a cardioid
  • b < a: the limaçon has an inner loop
  • b = a/2, it is a trisectrix (but not the Maclaurin trisectrix)

Explore the variations described above with a and b by visiting our Interactive Limaçon2.