siteIcon

Card Shark Shirt

Challenges Home

cardShark Shirt
Hints:

This image was inspired by the shirt pattern shown below.

Some standard TNT shapes were used: TNTHeart, TNTRetroDiamond, and TNTClover. However, we needed an additional shape to form the base of the spade and the club!

We recently added our TNTSpire to our TNTShapes library. It provided the base for our TNTClub and TNTSpade, which we proudly introduced to our ecosystem.

Features:
Comments:

To make sure our TNTHeart scaled appropriately (there are a lot of parameters that affect its shape!), we used a 'fudge factor' to scale it to our application size.

If you ask us, this was a clever idea! Check it out!

//the heart
var center = new TNTPoint(-2.5, 2.5);
var a = 16;
var b = 13;
var c = -5;
var d = -2;
var e = -1;
//fraction of heart: (1 is complete, .75 is 3/4, etc)
var f = 1; 
var steps = 200;
var fcolr = richRed;
var stroke = null;
var rotn = 0;
var thetaMin = 0; //in degrees
var thetaMax = 360; //in degrees
var factor = .1;
a = 14;
b = 15;
var myHeart = new TNTHeart(center, a*factor, b*factor,
    c*factor, d*factor, e*factor, thetaMin, thetaMax, steps,
    fcolr, stroke, rotn);
myHeart.drawTNTHeart(context);  
                                        
Even More:

This design was inspired by a 'groovy' shirt sported by all self-respecting card sharks!

cardShirt
A cool shirt sold by Royaura