Howto:Serializing a Canvas to SVG: Difference between revisions

Jump to navigation Jump to search
Line 33: Line 33:
This is referencing 5 different splash screen textures found in $FG_ROOT/Textures.
This is referencing 5 different splash screen textures found in $FG_ROOT/Textures.


When the patched svg module parses the SVG file, it comes up with a property hierarchy according to this (using props.dump() ):
When the patched svg module parses the SVG file, it comes up with a property hierarchy according to this, using props.dump():
<syntaxhighlight lang="nasal">
props.dump(root._node);
</syntaxhighlight>
 
[[File:Canvas2svg-serialization.png|thumb|Screenshot showing how the [[Howto:Extend_the_Canvas_SVG_module|patched svg.nas module]] turns svg/image tags into the corresponding canvas properties, showing two [[Property browser]] dialogs illustrating the internal representation, which can be used to help with [[Howto:Serializing a Canvas to SVG]].]]
[[File:Canvas2svg-serialization.png|thumb|Screenshot showing how the [[Howto:Extend_the_Canvas_SVG_module|patched svg.nas module]] turns svg/image tags into the corresponding canvas properties, showing two [[Property browser]] dialogs illustrating the internal representation, which can be used to help with [[Howto:Serializing a Canvas to SVG]].]]


Navigation menu