A nice little example of code with interactive explanations. Actionscript in flash, but same technique coudl be ysed for Python etc. http://www.jurjans.lv/flash/shape.html - Jason