]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - pgsrc/Help%2FAsciiSVGPlugin
Wikicreole syntax for links
[SourceForge/phpwiki.git] / pgsrc / Help%2FAsciiSVGPlugin
1 Date: Sat, 24 Jan 2009 20:18:24 +0100
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 Interface to [http://www1.chapman.edu/~jipsen/svg/asciisvg.html]
12
13 Requires ENABLE_XHTML_XML = true
14
15 Syntax: [http://www1.chapman.edu/~jipsen/svg/asciisvgcommands.html]
16
17 If you are using Internet Explorer 6 + Adobe SVGviewer (often included
18 by default with Windows XP) or SVG enabled Mozilla/Firefox (and have
19 Adobe SVGviewer installed as well!) then you should see the examples.
20
21 == Usage
22 <verbatim>
23 <?plugin AsciiSVG width= height= onmousemove="" script="" 
24          code...  
25 ?>
26 </verbatim>
27
28 == Arguments
29
30 width, height, script, onmouseover
31
32 All other arguments are passed to the ASCIISvg javascript library and
33 rendered as SVG.
34
35 See [http://www1.chapman.edu/~jipsen/svg/asciisvg.html]
36
37 == Example
38
39 <verbatim>
40 <?plugin AsciiSVG width="117" height="117" 
41   border = 0
42   initPicture(-10,10)
43   axes()
44   stroke = "red"
45   p = []
46   with (Math) 
47     for (t = 0; t < 10.01; t += 0.05)
48       p[p.length] = [t*cos(PI*t), t*sin(PI*t)]
49   path(p)
50 ?>
51 </verbatim>
52
53 <?plugin AsciiSVG width="117" height="117" 
54   border = 0
55   initPicture(-10,10)
56   axes()
57   stroke = "red"
58   p = []
59   with (Math) 
60     for (t = 0; t < 10.01; t += 0.05)
61       p[p.length] = [t*cos(PI*t), t*sin(PI*t)]
62   path(p)
63 ?>
64
65 == Known Problems
66
67 With multiple ~AsciiSVG plugins on the same page the 2nd and
68 subsequent ones will have the same width and height.
69
70 == Author
71 * [Reini Urban|PhpWiki:ReiniUrban]
72
73 == See Also
74 * [Help:AsciiMathPlugin]
75
76 ----
77 [[PhpWikiDocumentation]] [[CategoryWikiPlugin]]