Drawing a ellipse with PHP

script output:

If you don't believe it's an ellipse, 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.