]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - pgsrc/Help%2FAsciiSVGPlugin
Wikicreole syntax for <verbatim>
[SourceForge/phpwiki.git] / pgsrc / Help%2FAsciiSVGPlugin
1 Date: Sun, 22 Feb 2009 19:16:30 +0000
2 Mime-Version: 1.0 (Produced by PhpWiki 1.3.14-20080124)
3 X-Rcs-Id: $Id$
4 Content-Type: application/x-phpwiki;
5   pagename=Help%2FAsciiSVGPlugin;
6   flags=PAGE_LOCKED;
7   markup=2;
8   charset=iso-8859-1
9 Content-Transfer-Encoding: binary
10
11 The *~AsciiSVGPlugin* [[Help:WikiPlugin|plugin]] is an interface to 
12 [[http://www1.chapman.edu/~jipsen/svg/asciisvg.html]]
13
14 Requires ENABLE_XHTML_XML = true
15
16 Syntax: [[http://www1.chapman.edu/~jipsen/svg/asciisvgcommands.html]]
17
18 If you are using Internet Explorer 6 + Adobe SVGviewer (often included
19 by default with Windows XP) or SVG-enabled Firefox (2.0 or above)
20 then you should see the examples.
21
22 == Usage
23 {{{
24 <<AsciiSVG width= height= onmousemove="" script="" 
25          code...  
26 >>
27 }}}
28
29 == Arguments
30
31 width, height, script, onmouseover
32
33 All other arguments are passed to the ASCIISvg javascript library and
34 rendered as SVG.
35
36 See [[http://www1.chapman.edu/~jipsen/svg/asciisvg.html]]
37
38 == Example
39
40 {{{
41 <<AsciiSVG width="117" height="117" 
42   border = 0
43   initPicture(-10,10)
44   axes()
45   stroke = "red"
46   p = []
47   with (Math) 
48     for (t = 0; t < 10.01; t += 0.05)
49       p[p.length] = [t*cos(PI*t), t*sin(PI*t)]
50   path(p)
51 >>
52 }}}
53
54 <<AsciiSVG width="117" height="117" 
55   border = 0
56   initPicture(-10,10)
57   axes()
58   stroke = "red"
59   p = []
60   with (Math) 
61     for (t = 0; t < 10.01; t += 0.05)
62       p[p.length] = [t*cos(PI*t), t*sin(PI*t)]
63   path(p)
64 >>
65
66 == Known Problems
67
68 With multiple ~AsciiSVG plugins on the same page the 2nd and
69 subsequent ones will have the same width and height.
70
71 == Author
72 * [[PhpWiki:ReiniUrban|Reini Urban]]
73
74 == See Also
75 * [[Help:AsciiMathPlugin]]
76 * [[Help:ChartPlugin]]
77
78 ----
79 [[PhpWikiDocumentation]] [[CategoryWikiPlugin]]