topical media & game development

talk show tell print

lib-present-math-svg-example.htm / htm



  <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  <html><head>
  <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  
  <title>ASCIIsvg sample file</title>
  <script language="JavaScript" src="lib-present-math-svg-files-ASCIIsvg.js"></script>
  </head><body>
  <center>
  <h2>ASCIIsvg.js Sample file: Easy Scalable Vector Graphics</h2>
  
  <b>
  This page requires Internet Explorer 6 + <a href="http://www.adobe.com/svg">Adobe SVGviewer</a> or <a href="http://www1.chapman.edu/%7Ejipsen/svg/svgenabledmozillafirefox.html">SVG enabled Mozilla/Firefox</a>.
  </b>
  
  <p>
  <table>
  <tbody><tr><td valign="top">
  <center>
  <textarea id="picture1input" style="display: none;" cols="60" rows="10"> width="200"; height="200"; border=25

   xmin=-1; xmax=6; ymin=-1; axes()

   plot(sin(x)+2.5)

   a = [0,0]

   b = [5,5]

   marker = "dot"

   line(a,b)

   text(a,"a",belowright)

   text(b,"g",above)

   text(b,"b",right)

   text(b,"b",left)

   text(b,"b",below)

   text(b,"b",aboveleft)

   text(b,"b",aboveright)

   text(b,"b",belowleft)

   text(b,"b",belowright)

   stroke = "red"

   path([a,[0,5],b,[5,0]])

   stroke = "green"

   marker = "none"

   curve([a,[.25,0],[.5,.5],[1,1],[1.5,1.5]])

   stroke = "blue"

   circle([5,0],1)

   ellipse([0,5],1,2)

   stroke = "purple"

   rect([0,0],[2,2],null,.5,1)

   marker = "arrowdot"

   line(a,[5,0])</textarea><br>
  <button onclick="showHideCode(this)">Show/Hide</button><button style="display: none;" onclick="updatePicture(0)">Update</button><br>
  <svg ybase="151" onmousemove="updateCoords0()" oy="46.42857142857143" ox="46.42857142857143" ymax="6.000000000000001" ymin="-1" xmax="6" xmin="-1" yunitlength="21.428571428571427" xunitlength="21.428571428571427" height="200" width="200" style="display: inline;" id="picture1">
  </svg>
  </center>
  <p>
  
  </p></td></tr></tbody></table></p></center></body></html>
  


(C) Æliens 04/09/2009

You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.