Search code examples
phpalgorithmdrawingspiral

PHP script to draw a spiral?


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 :-)


Solution

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