siteIcon

Tech Novice Tools

JS Grafix Sandbox

burgerIcon
spiral

JSGrafix Sandbox (JSGS)

TNT Bifolium

Your browser does not support HTML5 Canvas

Notes:

A 'polar coordinates' type shape.

The equation of a Bifolium is:

    r = a*sin(θ)*cos2(θ)
    a is related to the length of the 'wing'
                            
                        

Note that the link to the Bifolium entry in MathWorld.Wolfram switches the sine and cosine functions. Since sine and cosine are related through a phase shift, the shapes are equivalent except for their rotation in the plane.

Features and Usage:

Primary Attributes:

5 parameters:
center(TNTPoint), petalRadius(double), fillColor(TNTColor), borderColor(TNTStroke), rotationInDegrees(double)

In a non-rotated format, the first petal forms a 35 degree angle with the x-axis

To Create:

var powderBlue = new TNTColor(126, 133, 234, "powderBlue");
blackStroke.lineWidth = .5;
var myBifolium = new TNTBifolium(origin, 15, powderBlue, blackStroke, 0);

To Draw:

myBifolium.drawTNTBifolium(context);

Comments: A creative student used a TNTBifolium to make wings for a honey bee.