Canvas Nasal API: Difference between revisions

Jump to navigation Jump to search
(→‎arcSmallCW: not sure what the 0 does)
Line 91: Line 91:
'''Parameters:''' (lat, lon)
'''Parameters:''' (lat, lon)


?
Sets the geographic coordinates for a map element. Parent element must be of type "map".
 
'''Example:''' setGeoPosition(37.615223, -122.389978)
 
Places element at [[San Francisco International Airport]].
 
=== createTransform ===
=== createTransform ===
createTransform creates a new matrix on top of the existing matrix stack. A while ago I've added an example for a HUD built using the Canvas to the wiki: http://wiki.flightgear.org/Canvas_HUD
createTransform creates a new matrix on top of the existing matrix stack. A while ago I've added an example for a HUD built using the Canvas to the wiki: http://wiki.flightgear.org/Canvas_HUD

Navigation menu