Dynamic graphics again

A Chinese friend of my asked me to create an artificial horizon meter for his axis-Accelerometer.
Well, here it is. [noparse]:)[/noparse]
An example.
will show:

Turning 30 degrees to the left:

And turning 60 degrees to the right:

Or flying upside down:
Well, here it is. [noparse]:)[/noparse]
An example.
img src="http://**path to your php server**/horizon.php?angle=0
will show:
Turning 30 degrees to the left:
img src="http://**path to your php server**/horizon.php?angle=-30
And turning 60 degrees to the right:
img src="http://**path to your php server**/horizon.php?angle=60
Or flying upside down:
img src="http://**path to your php server**/horizon.php?angle=180