views:

230

answers:

2

Does anybody have a PHP (or other language) script for drawing a spiral. A simple (Archimedean spiral) would be just fine. Of course the principle is simple but coding it in SVG or GD would take some time, so I wonder if somebody has one ready :-)

A: 

http://www.w3schools.com/svg/tryit.asp?filename=path2&type=svg use google

MrHus
This is pretty but it is a drawing (pre-calculated points connected by curves) rather than a spiral generated by an algorithm.
Vacilando
+1  A: 

See this page: Using GD (imagearc) and PHP to draw spirals (Listing 27.3)

JYelton