Notes:
Shed no tears for this new shape, unless they are tears of joy! You can specify the tip (sharp point) location, the length along that axis, a horizontalFactor that influences the width and a 'power' that affects the shape.
If you want to see how the various parameters in this shape affect its appearance, check out our Anime-TNTTearDrop app.
This shape is made using parametric equations:
x = a * cos(t)
y = b * sin(t) * sinm(t/2)
TNTTearDrop Features and Usage:
| Primary Attributes: |
7 Parameters:
|
|---|---|
| To Create: |
The example above was created by:
var tip = new TNTPoint(5, 12);
var vertLength = 20;
var horzFactor = 8;
var powr = 3; //influences drop shape
var fcolr = lightBlue;
var stroke = darkBlueStroke;
var rotn = 0;
var myTear = new TNTTearDrop(tip, vertLength,
horzFactor, powr, fcolr, stroke, rotn);
//mathematical 'center' of the shape
myTear.showCenter = true;
myTear.showTip = true;
myTear.drawTNTTearDrop(context);
|
| To Draw: | myTear.drawTNTTearDrop(context); |
