topical media & game development
#try-svg-1.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"><circle fill="red" r="0.5" cy="97" cx="0" id="pointerpos"></circle><rect style="stroke-width: 1; fill: white;" height="200" width="200" y="0" x="0"></rect><polyline style="stroke: white; stroke-width: 3;" points="0,0 200,0"></polyline><polyline style="stroke: white; stroke-width: 3;" points="0,200 200,200"></polyline><polyline style="stroke: white; stroke-width: 3;" points="0,0 0,200"></polyline><polyline style="stroke: white; stroke-width: 3;" points="199,0 199,200"></polyline><path fill="none" stroke="black" stroke-width="0.5" d="M0,153.57142857142856 200,153.57142857142856 M46.42857142857143,0 46.42857142857143,200 M67.85714285714286,156.24999999999997 67.85714285714286,150.89285714285714 M89.28571428571429,156.24999999999997 89.28571428571429,150.89285714285714 M110.71428571428572,156.24999999999997 110.71428571428572,150.89285714285714 M132.14285714285714,156.24999999999997 132.14285714285714,150.89285714285714 M153.57142857142856,156.24999999999997 153.57142857142856,150.89285714285714 M174.99999999999997,156.24999999999997 174.99999999999997,150.89285714285714 M196.4285714285714,156.24999999999997 196.4285714285714,150.89285714285714 M25.000000000000004,156.24999999999997 25.000000000000004,150.89285714285714 M3.5714285714285765,156.24999999999997 3.5714285714285765,150.89285714285714 M49.10714285714286,174.99999999999997 43.75,174.99999999999997 M49.10714285714286,196.4285714285714 43.75,196.4285714285714 M49.10714285714286,132.14285714285714 43.75,132.14285714285714 M49.10714285714286,110.71428571428571 43.75,110.71428571428571 M49.10714285714286,89.28571428571428 43.75,89.28571428571428 M49.10714285714286,67.85714285714285 43.75,67.85714285714285 M49.10714285714286,46.428571428571416 43.75,46.428571428571416 M49.10714285714286,24.99999999999999 43.75,24.99999999999999 M49.10714285714286,3.5714285714285623 43.75,3.5714285714285623"></path><path fill="none" stroke="black" stroke-width="1" d="M25.000000000000004,118.03152110302635 25.749999250000005,117.61533435012917 26.499998500000004,117.17757105854615 27.249997750000006,116.7187674324962 27.999997000000004,116.2394854479253 28.749996250000006,115.74031216415791 29.499995500000004,115.22185900482374 30.249994750000006,114.68476100894206 30.999994000000008,114.12967605307968 31.749993250000006,113.55728404553618 32.499992500000005,112.96828609354283 33.24999175000001,112.36340364449565 33.99999100000001,111.74337760227438 34.74999025000001,111.10896741972958 35.49998950000001,110.4609501684498 36.24998875000001,109.80011958694796 36.99998800000001,109.12728510843279 37.74998725000001,108.44327086935651 38.49998650000001,107.74891469995252 39.24998575000001,107.04506709800042 39.99998500000001,106.33259018707447 40.74998425000001,105.61235666055232 41.49998350000001,104.88524871267667 42.249982750000015,104.15215695797998 42.99998200000001,103.41397934039516 43.74998125000001,102.67162003338866 44.499980500000014,101.92598833246343 45.24997975000001,101.17799754138765 45.99997900000001,100.4285638535142 46.74997825000001,99.67860522956057 47.499977500000014,98.92904027322403 48.24997675000001,98.18078710600922 48.99997600000001,97.4347622426463 49.74997525000001,96.69187946847735 50.49997450000001,95.95304872018583 51.24997375000001,95.21917497124007 51.99997300000001,94.49115712341616 52.74997225000001,93.76988690575804 53.49997150000001,93.0562477823229 54.24997075000001,92.35111387005047 54.99997000000001,91.65534886808119 55.749969250000014,90.96980499983492 56.49996850000001,90.2953219691458 57.24996775000001,89.63272593173225 57.99996700000001,88.9828284832614 58.749966250000014,88.34642566524802 59.499965500000016,87.72429699000507 60.24996475000001,87.11720448584047 60.99996400000001,86.52589176366969 61.749963250000015,85.95108310618711 62.49996250000001,85.39348258071205 63.24996175000001,84.85377317679617 63.99996100000001,84.3326159696481 64.74996025000002,83.830649310401 65.49995950000002,83.34848804421343 66.24995875000002,82.88672275716262 66.99995800000002,82.44591905285172 67.74995725000002,82.02661685961768 68.49995650000002,81.62932976918752 69.24995575000001,81.25454440759444 69.99995500000001,80.90271983912253 70.74995425000002,80.57428700401177 71.4999535,80.26964819061115 72.24995275,79.98917654262671 72.99995200000001,79.7332156020681 73.74995125000001,79.50207888845335 74.4999505,79.29604951478755 75.24994975,79.11537984078542 75.999949,78.96029116376285 76.74994824999999,78.83097344757596 77.49994749999999,78.72758508993948 78.24994674999999,78.65025272840992 78.999946,78.5990710852705 79.74994525,78.57410285150863 80.49994449999998,78.57537861002727 81.24994374999999,78.60289679818491 81.99994299999997,78.65662370970954 82.74994224999998,78.7364935359845 83.49994149999998,78.84240844665574 84.24994074999998,78.97423870946147 84.99993999999998,79.13182284913765 85.74993924999998,79.31496784520459 86.49993849999997,79.52344936839246 87.24993774999996,79.757012055416 87.99993699999996,80.01536982176205 88.74993624999996,80.2982062121065 89.49993549999996,80.60517478793186 90.24993474999997,80.93589955187015 90.99993399999997,81.28997540825176 91.74993324999997,81.66696865929607 92.49993249999996,82.06641753633586 93.24993174999996,82.4878327654251 93.99993099999995,82.93069816663707 94.74993024999995,83.39447128631907 95.49992949999995,83.87858406152894 96.24992874999995,84.38244351583974 96.99992799999995,84.9054324856602 97.74992724999996,85.44691037618158 98.49992649999994,86.00621394602449 99.24992574999993,86.58265811962512 99.99992499999993,87.17553682636542 100.74992424999994,87.78412386541955 101.49992349999994,88.4076737952574 102.24992274999994,89.04542284671528 102.99992199999994,89.69658985851599 103.74992124999993,90.36037723409153 104.49992049999993,91.03597191853738 105.24991974999992,91.72254639450104 105.99991899999992,92.41925969578527 106.74991824999992,93.12525843742448 107.49991749999992,93.83967786097254 108.24991674999993,94.56164289372153 108.99991599999991,95.29026922055435 109.74991524999992,96.02466436711792 110.49991449999992,96.76392879299048 111.2499137499999,97.50715699350395 111.9999129999999,98.25343860887169 112.74991224999991,99.00185953926315 113.49991149999991,99.75150306445961 114.2499107499999,100.50145096671962 114.9999099999999,101.25078465547863 115.7499092499999,101.9985862925053 116.49990849999989,102.74393991613637 117.24990774999989,103.48593256321284 117.9999069999999,104.22365538734353 118.7499062499999,104.95620477212584 119.49990549999988,105.68268343796099 120.24990474999989,106.40220154110672 120.99990399999989,107.11387776362274 121.74990324999989,107.81684039287263 122.49990249999988,108.51022838926089 123.24990174999988,109.19319244089642 123.99990099999988,109.8648960038915 124.74990024999988,110.52451632702129 125.49989949999987,111.17124545948921 126.24989874999987,111.80429124056367 126.99989799999987,112.422878269874 127.74989724999986,113.0262488571769 128.49989649999986,113.61366395043059 129.24989574999987,114.1844040410392 129.99989499999987,114.73777004515905 130.74989424999984,115.2730841599873 131.49989349999987,115.78969069398401 132.24989274999984,116.28695687001048 132.99989199999987,116.76427360040078 133.74989124999985,117.2210562330164 134.49989049999985,117.65674526737057 135.24988974999985,118.070807039945 135.99988899999983,118.46273437785972 136.74988824999986,118.8320472200951 137.49988749999983,119.17829320550551 138.24988674999986,119.50104822690399 138.99988599999983,119.79991695053944 139.74988524999983,120.07453330033009 140.49988449999984,120.32456090626012 141.24988374999984,120.54969351638984 141.99988299999984,120.74965537197546 142.7498822499998,120.92420154523838 143.49988149999984,121.07311823937034 144.24988074999982,121.19622305040737 144.99987999999982,121.29336519065139 145.74987924999982,121.36442567336589 146.49987849999982,121.40931745851948 147.24987774999983,121.42798555939892 147.9998769999998,121.42040710996072 148.74987624999983,121.38659139283926 149.4998754999998,121.32657982797657 150.2498747499998,121.24044592188842 150.9998739999998,121.12829517762792 151.7498732499998,120.99026496555801 152.4998724999998,120.82652435509011 153.24987174999978,120.63727390759566 153.9998709999998,120.42274543074411 154.7498702499998,120.18320169456798 155.4998694999998,119.91893610960308 156.2498687499998,119.63027236749805 156.9998679999998,119.3175640445334 157.7498672499998,118.98119416853554 158.49986649999977,118.62157474971657 159.2498657499998,118.23914627601435 159.99986499999977,117.83437717355089 160.74986424999977,117.40776323287007 161.49986349999978,116.95982700165744 162.24986274999978,116.49111714468596 162.99986199999978,116.00220777177155 163.74986124999975,115.49369773456182 164.49986049999978,114.9662098930191 165.24985974999976,114.42039035249645 165.9998589999998,113.85690767234094 166.74985824999976,113.27645204699373 167.49985749999976,112.67973446058978 168.24985674999976,112.06748581609305 168.99985599999974,111.44045604003357 169.74985524999977,110.79941316394282 170.49985449999974,110.14514238361336 171.24985374999977,109.4784450973339 171.99985299999975,108.80013792427856 172.74985224999975,108.11105170425252 173.49985149999975,107.41203048001928 174.24985074999975,106.70393046345582 174.99984999999975,105.9876189868021 " id="undefined"></path><path fill="none" stroke="black" stroke-width="1" d="M46.42857142857143,153.57142857142856 153.57142857142856,46.42857142857143" id="undefined"></path><circle fill="yellow" stroke="black" stroke-width="1" r="4" cy="153.57142857142856" cx="46.42857142857143"></circle><circle fill="yellow" stroke="black" stroke-width="1" r="4" cy="46.42857142857143" cx="153.57142857142856"></circle><text text-anchor="start" font-weight="normal" font-size="10.714285714285714" font-family="times" font-style="italic" y="164.286" x="51.7857" id="undefined">a</text><text text-anchor="middle" font-weight="normal" font-size="10.714285714285714" font-family="times" font-style="italic" y="41.0714" x="153.571" id="undefined">g</text><text text-anchor="start" font-weight="normal" font-size="10.714285714285714" font-family="times" font-style="italic" y="50" x="158.929" id="undefined">b</text><text text-anchor="end" font-weight="normal" font-size="10.714285714285714" font-family="times" font-style="italic" y="50" x="148.214" id="undefined">b</text><text text-anchor="middle" font-weight="normal" font-size="10.714285714285714" font-family="times" font-style="italic" y="57.1429" x="153.571" id="undefined">b</text><text text-anchor="end" font-weight="normal" font-size="10.714285714285714" font-family="times" font-style="italic" y="41.0714" x="148.214" id="undefined">b</text><text text-anchor="start" font-weight="normal" font-size="10.714285714285714" font-family="times" font-style="italic" y="41.0714" x="158.929" id="undefined">b</text><text text-anchor="end" font-weight="normal" font-size="10.714285714285714" font-family="times" font-style="italic" y="57.1429" x="148.214" id="undefined">b</text><text text-anchor="start" font-weight="normal" font-size="10.714285714285714" font-family="times" font-style="italic" y="57.1429" x="158.929" id="undefined">b</text><path fill="none" stroke="red" stroke-width="1" d="M46.42857142857143,153.57142857142856 46.42857142857143,46.42857142857143 153.57142857142856,46.42857142857143 153.57142857142856,153.57142857142856 " id="undefined"></path><circle fill="yellow" stroke="black" stroke-width="1" r="4" cy="153.57142857142856" cx="46.42857142857143"></circle><circle fill="yellow" stroke="black" stroke-width="1" r="4" cy="46.42857142857143" cx="46.42857142857143"></circle><circle fill="yellow" stroke="black" stroke-width="1" r="4" cy="46.42857142857143" cx="153.57142857142856"></circle><circle fill="yellow" stroke="black" stroke-width="1" r="4" cy="153.57142857142856" cx="153.57142857142856"></circle><path fill="none" stroke="green" stroke-width="1" d="M46.42857142857143,153.57142857142856 T51.785714285714285,153.57142857142856 57.142857142857146,142.85714285714283 67.85714285714286,132.14285714285717 78.57142857142857,121.42857142857143 " id="undefined"></path><circle fill="none" stroke="blue" stroke-width="1" r="21.428571428571427" cy="153.57142857142856" cx="153.57142857142856" id="undefined"></circle><ellipse fill="none" stroke="blue" stroke-width="1" ry="42.857142857142854" rx="21.428571428571427" cy="46.42857142857143" cx="46.42857142857143" id="undefined"></ellipse><rect fill="none" stroke="purple" stroke-width="1" ry="21.428571428571427" rx="10.714285714285714" height="42.857142857142854" width="42.857142857142854" y="110.71428571428571" x="46.42857142857143" id=""></rect><path fill="none" stroke="purple" stroke-width="1" d="M46.42857142857143,153.57142857142856 153.57142857142856,153.57142857142856" id="undefined"></path><circle fill="yellow" stroke="black" stroke-width="1" r="4" cy="153.57142857142856" cx="46.42857142857143"></circle><path fill="purple" stroke="purple" stroke-width="1" d="M 138.57142857142856 149.57142857142856 L 150.57142857142856 153.57142857142856 L 138.57142857142856 157.57142857142856 z"></path><circle fill="yellow" stroke="black" stroke-width="1" r="4" cy="153.57142857142856" cx="153.57142857142856"></circle><text text-anchor="end" font-weight="normal" font-size="10.714285714285714" font-family="times" font-style="" y="169.643" x="169.643" id="AScoord0">(-2.17, 2.64)</text></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.