Spirals made with and without cubic splines
Internet Explorer + Adobe SVGviewer
or SVG enabled
Mozilla required to view this page
(x,y)
Move the pointer over the pictures to see the coordinate.
These are the ASCIIsvg.js commands that generate the two spirals:
<script>
function drawPicture(){
initPicture("figure1",-10,10,-10)
axes()
stroke = "red"
a = []
with (Math)
for (var i = 0; i < 10; i = i+0.1)
a[a.length] = [i*cos(PI*i+PI/2), i*sin(PI*i+PI/2)]
curve(a)
initPicture("figure2")
stroke = "green"
a = []
with (Math)
for (var i = 0; i < 10; i = i+0.1)
a[a.length] = [i*cos(-PI*i+PI/2), i*sin(-PI*i+PI/2)]
path(a)
}
function coordinates(id){
var p = getPointer(id)
setText(p[0].toFixed(2),"pointerX")
setText(p[1].toFixed(2),"pointerY")
}
</script>