Talk:Canvas Path

From FlightGear wiki
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 for the supported commands. You can see in the SVG parser that most SVG commands can directly be mapped to Canvas Path commands: 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)