ASCIIsvg.js Test: Easy Scalable Vector Graphics
Internet Explorer + Adobe SVGviewer
or SVG enabled
Mozilla required to view this page
<script>
function drawPicture(){
initPicture("figure1")
origin = [50,50]
unitlength = 20
axes()
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,[1,0.5],[2,2],[4,2],[6,3]])
stroke = "blue"
circle([0,0],1)
ellipse([0,5],1,2)
stroke = "purple"
rect([0,0],[2,2],.5,1)
marker = "arrowdot"
line(a,[5,0])
initPicture("figure2")
line(a,b)
text(a,"a","below")
}
</script>