How to manipulate Canvas elements: Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
Line 6: Line 6:
If you have not the SpokenGCA addon installed, you may download '''''plot2D.nas''''' from  [https://sourceforge.net/p/flightgear/fgaddon/HEAD/tree/trunk/Addons/SpokenGCA/plot2D.nas here], put it into your ''$FG-HOME/Nasal/'' folder and then execute:
If you have not the SpokenGCA addon installed, you may download '''''plot2D.nas''''' from  [https://sourceforge.net/p/flightgear/fgaddon/HEAD/tree/trunk/Addons/SpokenGCA/plot2D.nas here], put it into your ''$FG-HOME/Nasal/'' folder and then execute:
<syntaxhighlight lang="nasal">
<syntaxhighlight lang="nasal">
   var root = getprop("/sim/fg-root");
   var home = getprop("/sim/fg-home");
   io.load_nasal( root ~ '/Nasal/plot2D.nas', "canvas" );
   io.load_nasal( home ~ '/Nasal/plot2D.nas', "canvas" );
</syntaxhighlight>Once executed, you can try the examples given below.<br />
</syntaxhighlight>Once executed, you can try the examples given below.<br />


229

edits

Navigation menu