Changes

Jump to: navigation, search

Canvas SVG Parser

2 bytes added, 13:56, 16 July 2013
m
Vector Image Support
=== Vector Image Support ===
The SVG parser basically just maps the xml structure to the property tree. It is implemented in Nasal on top of the XML parsing facilities alread already provided by FlightGear. Using separate canvas elements instead of a single image will always be slower as every little piece of the canvas hat to be triangulated and afterwards rendered every time the canvas gets updated instead of just copying an image. On the other hand you if you use the canvas you can dynamically update the contents of the image and also get (theoretically) unlimited resolution, even changeable at runtime. For SVG , already existing tools (Inkscape) can be used to create images and then just load them via Nasal and add some dynamic features to them.
<!-- Integration-wise, there are some lessons to be learnt from the way SMIL works via SVG and ECMAScript (JavaScript). -->
18,574
edits

Navigation menu