spiralIcon

JSGS TNT-Designs

Inscribed Arrows Topo Map

Your browser does not support HTML5 Canvas

Notes:

The same topo map used in Swimmy Circles Topo Map was applied here to the direction of the arrow in a TNTInscribedArrow.

Features:
Comments:

Once again, used a helper function, topoEqn, to calculate the angle of the inscribed arrow.

Even More:
function drawMyDesign() {
    var radius = 1.5;
    var offsetRadius = radius * 0.3;
    var dotCount = 0;
    var angle = 0;
    for (var x = XMIN; x <= XMAX; x += 3) {
        for (var y = YMIN; y <= YMAX; y += 3) {
            var center = new TNTPoint(x, y);
            var angle = topoEqn(x, y);
            var arrow = new TNTInscribedArrow(center, radius, .9, .35, red, null, pink, null, 0, angle);
            arrow.drawTNTInscribedArrow(context);
        }//end inner loop
    }//var outer loop

} //end function drawMyDesign

//------- additional functions here------------------

function topoEqn(x, y) {
    return 360 * Math.sin(.002 * (x * x + y * y));
}//end function topoEqn