Howto:Serializing a Canvas to SVG: Difference between revisions

Jump to navigation Jump to search
Line 240: Line 240:
       .setAlignment("center-center") # how the text is aligned to where you place it
       .setAlignment("center-center") # how the text is aligned to where you place it
       .setTranslation(160, 130);    # where to place the text
       .setTranslation(160, 130);    # where to place the text
</syntaxhighlight>
To actually process/convert the Canvas to SVG/XML markup, we need to start at the <code>myCanvas</code> node, to see what's in there, we can use the props.dump() API:
<syntaxhighlight lang="nasal">
props.dump( myCanvas );
</syntaxhighlight>
</syntaxhighlight>


Navigation menu