Differences between version 5 and previous revision of Help/AsciiSVGPlugin.
Other diffs: Previous Major Revision, Previous Author
Newer page: |
version 5 |
Last edited on 9 September 2007 0:16 |
by harold |
Revert |
Older page: |
version 4 |
Last edited on 22 May 2014 3:01 |
by harold |
Revert |
@@ -1,88 +1,66 @@
-The **~AsciiSVGPlugin** [[Help:WikiPlugin|plugin]] is an interface
to
-[[
http://www1.chapman.edu/~jipsen/svg/asciisvg.html]]
+Interface
to http://www1.chapman.edu/~jipsen/svg/asciisvg.html
Requires ENABLE_XHTML_XML = true
-Syntax: [[
http://www1.chapman.edu/~jipsen/svg/asciisvgcommands.html]]
+Syntax: http://www1.chapman.edu/~jipsen/svg/asciisvgcommands.html
If you are using Internet Explorer 6 + Adobe SVGviewer (often included
-by default with Windows XP) or SVG-
enabled Firefox (2.0 or above)
-then you should see the examples.
+by default with Windows XP) or SVG enabled Mozilla/
Firefox (and have
+Adobe SVGviewer installed as well!)
then you should see the examples.
-==
Usage ==
-{{{
-<<
AsciiSVG width= height= onmousemove="" script=""
-
code...
->
>
-}}}
+!
Usage
+<verbatim>
+
<?plugin
AsciiSVG width= height= onmousemove="" script=""
+
code...
+ ?
>
+</verbatim>
-{| class="bordered"
-|-
-! Argument
-! Description
-! Default value
-|-
-| **height**
-| graph
width
-| 200
-|-
-| **height**
-| graph
height
-| 200
-|-
-| **
script**
-|
-| false
-|-
-| **
onmouseover**
-|
-| false
-|}
+width,
height,
script,
onmouseover
-All other arguments are passed to the ASCIISvg javascript library and rendered as SVG.
+All other arguments are passed to the ASCIISvg javascript library and
+
rendered as SVG. See
+http://www1.chapman.edu/~jipsen/svg/asciisvg.html
-See [[http://www1.chapman.edu/~jipsen/svg/asciisvg.html]]
-== Example ==
-
-{{{
-<
<AsciiSVG width="117" height="117"
+<verbatim>
+<?plugin
AsciiSVG width="117" height="117"
+ border = 0
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"
+<?plugin
AsciiSVG width="117" height="117"
+ border = 0
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)
-With multiple ~AsciiSVG plugins on the same page the second
and subsequent ones will have the same width and height.
+With multiple ~AsciiSVG plugins on the same page the 2nd
and
+
subsequent ones will have the same width and height.
-==
Author ==
-* [[Help
:Reini Urban|Reini Urban]]
+!
Author
+PhpWiki
:ReiniUrban
-==
See Also ==
-* [[
Help:AsciiMathPlugin]]
-* [[Help:ChartPlugin]]
+!
See Also
+Help:AsciiMathPlugin
-[[
PhpWikiDocumentation]] [[CategoryWikiPlugin]]
-</noinclude>
+PhpWikiDocumentation Help:WikiPlugin
version 5
Interface to
http://www1.chapman.edu/jipsen/svg/asciisvg.html
Requires ENABLE_XHTML_XML = true
Syntax:
http://www1.chapman.edu/jipsen/svg/asciisvgcommands.html
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.
Usage
<?plugin AsciiSVG width= height= onmousemove="" script=""
code...
?>
Arguments
width, height, script, onmouseover
All other arguments are passed to the ASCIISvg javascript library and
rendered as SVG. See
http://www1.chapman.edu/jipsen/svg/asciisvg.html
Example
<?plugin AsciiSVG width="117" height="117"
border = 0
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 2nd and
subsequent ones will have the same width and height.
Author
PhpWiki:ReiniUrban
See Also
Help:AsciiMathPlugin
PhpWikiDocumentation
Help:WikiPlugin