<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="home" title="HomePage" href="HomePage.html" />
<link rel="help" title="HowToUseWiki" href="HowToUseWiki.html" />
<link rel="copyright" title="GNU General Public License" href="http://www.gnu.org/copyleft/gpl.html#SEC1" />
<link rel="author" title="The PhpWiki Programming Team" href="http://phpwiki.org/ThePhpWikiProgrammingTeam" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta http-equiv="Content-Language" content="en" />
<meta name="robots" content="noindex,nofollow" />
<meta name="language" content="en" />
<meta name="document-type" content="Public" />
<meta name="document-rating" content="General" />
<meta name="generator" content="PhpWiki" />
<meta name="PHPWIKI_VERSION" content="1.3.14" />

<base href="../" />
<link rel="stylesheet" type="text/css" charset="iso-8859-1" href="phpwiki-printer.css" />
<title>PhpWiki - Help  /  Ascii SVGPlugin</title>
</head>
<body>

<div id="header">
  
<!-- Page title -->
<h1>Help  /  Ascii SVGPlugin</h1>
</div>
<div id="content">



<div class="wikitext"><p class="tightenable top">Interface to <a href="http://www1.chapman.edu/jipsen/svg/asciisvg.html" target="" class="namedurl"><span style="white-space: nowrap"><img src="images/http.png" alt="" class="linkicon" border="0" />http://www1.chapman.edu/jipsen/svg/asciisvg.html</span></a></p>
<p class="tightenable">Requires ENABLE_XHTML_XML = true</p>
<p class="tightenable">Syntax: <a href="http://www1.chapman.edu/jipsen/svg/asciisvgcommands.html" target="" class="namedurl"><span style="white-space: nowrap"><img src="images/http.png" alt="" class="linkicon" border="0" />http://www1.chapman.edu/jipsen/svg/asciisvgcommands.html</span></a></p>
<p class="tightenable">If you are using Internet Explorer 6 + Adobe SVGviewer (often included
by default with Windows XP) or SVG enabled Mozilla/Firefox (and have
Adobe SVGviewer installed as well!) then you should see the examples.</p>
<h4>Usage</h4>
<pre class="tightenable top">
  &lt;?plugin AsciiSVG width= height= onmousemove=&quot;&quot; script=&quot;&quot;
           code...
  ?&gt;</pre>
<h4>Arguments</h4>
<p class="tightenable">width, height, script, onmouseover</p>
<p class="tightenable">All other arguments are passed to the ASCIISvg javascript library and
rendered as SVG.  See
<a href="http://www1.chapman.edu/jipsen/svg/asciisvg.html" target="" class="namedurl"><span style="white-space: nowrap"><img src="images/http.png" alt="" class="linkicon" border="0" />http://www1.chapman.edu/jipsen/svg/asciisvg.html</span></a></p>
<h4>Example</h4>
<pre class="tightenable">
&lt;?plugin AsciiSVG width=&quot;117&quot; height=&quot;117&quot;
  border = 0
  initPicture(-10,10)
  axes()
  stroke = &quot;red&quot;
  p = []
  with (Math)
    for (t = 0; t &lt; 10.01; t += 0.05)
      p[p.length] = [t*cos(PI*t), t*sin(PI*t)]
  path(p)
?&gt;</pre>
<div class="plugin tightenable" id="AsciiSVGPlugin"><script type="text/javascript" src="/phpwiki/themes/default/ASCIIsvg.js"></script>
<embed width="117" height="117" script='initPicture(-10,10)
  axes()
  stroke = &quot;red&quot;
  p = []
  with (Math)
    for (t = 0; t &lt; 10.01; t += 0.05)
      p[p.length] = [t*cos(PI*t), t*sin(PI*t)]
  path(p)'></embed>
</div>
<h4>Known Problems</h4>
<p class="tightenable">With multiple AsciiSVG plugins on the same page the 2nd and
subsequent ones will have the same width and height.</p>
<h4>Author</h4>
<p class="tightenable top"><a href="http://phpwiki.sourceforge.net/phpwiki/ReiniUrban" class="interwiki"><span style="white-space: nowrap"><img src="images/interwiki.png" alt="" class="linkicon" border="0" />PhpWiki:</span><span class="wikipage">ReiniUrban</span></a></p>
<h4>See Also</h4>
<p class="tightenable top"><a href="Help/AsciiMathPlugin" class="interwiki"><span style="white-space: nowrap"><img src="images/interwiki.png" alt="" class="linkicon" border="0" />Help:</span><span class="wikipage">AsciiMathPlugin</span></a></p>
<hr />
<p class="tightenable top bottom"><a href="PhpWikiDocumentation.html" class="wiki">PhpWikiDocumentation</a> <a href="Help/WikiPlugin" class="interwiki"><span style="white-space: nowrap"><img src="images/interwiki.png" alt="" class="linkicon" border="0" />Help:</span><span class="wikipage">WikiPlugin</span></a></p>
</div>

<div id="footer">  <hr class="printer" noshade="noshade" />
<p class="editdate">Owner: &quot;admin&quot;  Last edited on August 14, 2007  7:11 am by &quot;The PhpWiki programming team&quot;</p>
</div>

</div>
<!-- Add your Disclaimer here -->
</body>
</html>
