Created
December 31, 2015 00:12
-
-
Save gervasiocaj/5154cc8eac3e8f117289 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8" ?> | |
<svg id="drawing" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" > | |
<script type="text/javascript" xlink:href="https://cdnjs.cloudflare.com/ajax/libs/svg.js/2.2.5/svg.js"></script> | |
<script type="text/javascript"> | |
<![CDATA[ | |
var draw = SVG('drawing').size(300, 300); | |
var text = draw.text("Lorem ipsum dolor sit amet consectetur.\nCras sodales imperdiet auctor."); | |
]]> | |
</script> | |
</svg> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment