Talk:Canvas Path
Jump to navigation
Jump to 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).