]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - pgsrc/Help%2FAsciiSVGPlugin
New help page (untested)
[SourceForge/phpwiki.git] / pgsrc / Help%2FAsciiSVGPlugin
1 Date: Thu, 22 Feb 2007 21:15:59 +0100
2 Mime-Version: 1.0 (Produced by PhpWiki 1.3.13)
3 X-Rcs-Id: $Id: Help%2FAsciiSVGPlugin,v 1.1 2007-02-22 20:25:22 rurban Exp $
4 Content-Type: application/x-phpwiki;
5   pagename=Help%2FAsciiSVGPlugin;
6   pgsrc_version="2 $Revision: 1.1 $";
7   flags="";
8   markup=2;
9   charset=iso-8859-1
10 Content-Transfer-Encoding: binary
11
12 Interface to 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 Mozilla/Firefox (and have
20 Adobe SVGviewer installed as well!) then you should see the examples.
21
22 ! Usage
23 <verbatim>
24   <?plugin AsciiSVG width= height= onmousemove="" script="" 
25            code...  
26   ?>
27 </verbatim>
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.  See
35 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 PhpWiki:ReiniUrban
72
73 ! See Also
74 Help:AsciiMathPlugin
75
76 ----
77 PhpWikiDocumentation Help:WikiPlugin