HTML and CSS Reference
In-Depth Information
when we loop through the result array of objects for the nodes, we use the y value returned as
the x coordinate (or row) and the x returned as the y coordinate (or column):
context . arc (( node . y * 32 ) + 16 , ( node . x * 32 ) + 16 , 10 , 0 ,( Math . PI / 180 ) * 360 , false
false );
The final output from the example will return the simplest path that can be drawn between
two points. Figure 8-12 shows this final output.
Figure 8-12. The final output from Example 8-13
Search WWH ::




Custom Search