Hints:
Looking at the JSGS gallery of shapes, there is no shape available to make the body of the shamrock! (The stem may be made by one of the library shapes -- which one?!)
You must create the engine to make the body of the 3 leaf shamrock!
Features:
| Comments: |
You must find a shape in the library that is similar to the shamrock and find the associated JavaScript that creates that shape. Make a copy of the code and create a work area where you create a Most of the TNT Graphic shapes are not based on classes. See if you can modernize the code to use the Here is the code that was used to create the picture above:
blackStroke.lineWidth = .1;
shouldShowStem = true;
stemOrientation = 0; //0, random; 1, right; 2, left; 3 fixed
var myShamrock = new TNTShamrock(origin, 7, darkGreen, blackStroke, 15, shouldShowStem, stemOrientation);
myShamrock.drawTNTShamrock(context);
|
|---|---|
| Primary Attributes: |
7 Parameters:
|