View Source:
Help/AsciiSVGPlugin
Note:
This page has been locked and cannot be edited.
The **~AsciiSVGPlugin** [[Help:WikiPlugin|plugin]] is an interface to [[http://www1.chapman.edu/~jipsen/svg/asciisvg.html]] Requires ENABLE_XHTML_XML = true Syntax: [[http://www1.chapman.edu/~jipsen/svg/asciisvgcommands.html]] The browser must support SVG in order graphs to be displayed. If you are using a recent browser (Firefox, Opera, Chrome, Safari) then you should see the examples. == Usage == {{{ <<AsciiSVG width= height= onmousemove="" script="" code... >> }}} == Arguments == {| class="bordered" |- ! Argument ! Description ! Default value |- | **height** | graph width | 200 |- | **height** | graph height | 200 |- | **script** | | false |- | **onmouseover** | | false |} All other arguments are passed to the ASCIISvg javascript library and rendered as SVG. See [[http://www1.chapman.edu/~jipsen/svg/asciisvg.html]] == Example == {{{ <<AsciiSVG width="117" height="117" initPicture(-10,10) axes() stroke = "red" p = [] with (Math) for (t = 0; t < 10.01; t += 0.05) p[p.length] = [t*cos(PI*t), t*sin(PI*t)] path(p) >> }}} <<AsciiSVG width="117" height="117" initPicture(-10,10) axes() stroke = "red" p = [] with (Math) for (t = 0; t < 10.01; t += 0.05) p[p.length] = [t*cos(PI*t), t*sin(PI*t)] path(p) >> == Known Problems == With multiple ~AsciiSVG plugins on the same page the second and subsequent ones will have the same width and height. == Author == * [[Help:Reini Urban|Reini Urban]] == See Also == * [[Help:AsciiMathPlugin]] * [[Help:ChartPlugin]] <noinclude> ---- [[PhpWikiDocumentation]] [[CategoryWikiPlugin]] </noinclude>
Please enable JavaScript to view the
comments powered by Disqus.
HollenbackDotNet
Home Page
Popular Pages
All Categories
Main Categories
General Interest
Geek Stuff
DevOps
Linux Stuff
Pictures
Search
Toolbox
RecentChanges
RecentNewPages
What links here
Printable version
AllPages
RecentChanges
Recent Changes Cached
No changes found
Favorite Categories
ActionPage
(150)
WikiPlugin
(149)
GeekStuff
(137)
PhpWikiAdministration
(102)
Help/PageList
(75)
Help/MagicPhpWikiURLs
(75)
Blog
(69)
Pictures
(60)
GeneralInterest
(44)
LinuxStuff
(38)
Views
View Page
View Source
History
Diff
Sign In