Drawing a circle with PHP
script output:
PU1000 1000; PD735 735; PD702 772; PD675 812; PD654 856; PD638 903; PD628 951; PD625 1000; PD628 1049; PD638 1097; PD654 1144; PD675 1188; PD702 1228; PD735 1265; PD772 1298; PD812 1325; PD856 1346; PD903 1362; PD951 1372; PD1000 1375; PD1049 1372; PD1097 1362; PD1144 1346; PD1187 1325; PD1228 1298; PD1265 1265; PD1298 1228; PD1325 1188; PD1346 1144; PD1362 1097; PD1372 1049; PD1375 1000; PD1372 951; PD1362 903; PD1346 856; PD1325 813; PD1298 772; PD1265 735; PD1228 702; PD1188 675; PD1144 654; PD1097 638; PD1049 628; PD1000 625; PD951 628; PD903 638; PD856 654; PD813 675; PD772 702; PD735 735;
If you don't believe it's a circle, just look at
This may look a bit funny, because it's designed for my plasma cutter. You'll see a red line moving from x0 y0 to the center of the shape, then a black line to and around the perimeter.
- Just the
code
, man.