Diff: Help/AsciiSVGPlugin
Differences between current version and predecessor to the previous major change of Help/AsciiSVGPlugin.
Other diffs: Previous Revision, Previous Author
Newer page: | version 5 | Last edited on October 14, 2015 11:47 am | by PhilHollenback | |
Older page: | version 4 | Last edited on February 23, 2012 2:52 pm | by PhilHollenback | Revert |
current version
The AsciiSVGPlugin 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
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) >>
Known Problems
With multiple AsciiSVG plugins on the same page the second and subsequent ones will have the same width and height.