Notes:
Join the club, TNTClub that is! We wanted to be able to create graphics to support card games, so naturally, we needed this shape, composed of a TNTClover and a TNTSpire.
TNTClub Features and Usage:
| Primary Attributes: |
5 Parameters:
|
|---|---|
| To Create: |
The example above was created by:
var center = new TNTPoint(3,1);
var myStroke = whiteStroke;
var aClub = new TNTClub(center, 3, black, myStroke, 10);
aClub.drawTNTClub(context);
|
| To Draw: | aClub.drawTNTClub(context); |
| Comments: | This is the second shape in the JSGS to utilize the class keyword in JavaScript. Check it out in the source code. |
