//=time() ?>
So, I got the straight lines part working now too, which is nice. Involved far less maths than the curves.