Hi fellow wiki editors!

To help newly registered users get more familiar with the wiki (and maybe older users too) there is now a {{Welcome to the wiki}} template. Have a look at it and feel free to add it to new users discussion pages (and perhaps your own).

I have tried to keep the template short, but meaningful. /Johan G

Talk:Canvas Path

From FlightGear wiki
Jump to: navigation, search

Canvas paths vs. SVG paths

Are these using the same syntax as SVG paths, or are there some differences?

Johan G (Talk | contribs) 20:58, 30 October 2013 (UTC)

The are basically the same. See http://wiki.flightgear.org/Canvas_Nasal_API#Path for the supported commands. You can see in the SVG parser that most SVG commands can directly be mapped to Canvas Path commands: https://gitorious.org/fg/fgdata/source/3fcccea558df97f723438e51f9607e0922f8eca8:Nasal/canvas/svg.nas#L171 Only arcs are coded a bit different. Where SVG uses flags (large-arc-flag, sweep-flag) the Canvas/OpenVG uses different commands arc(Small/Large)(CW/CCW).

TheTom (talk) 23:06, 30 October 2013 (UTC)