I need to convert this code from JS to PHP.
http://lietuvospergales.lt/dev2/ (JS)
http://lietuvospergales.lt/dev2/gd.php (PHP; http://lietuvospergales.lt/dev2/gd.phps)
I think I did everything correct – at least the codes look identical to me, though I am not very good when it comes to understanding the JS code logic.
The first person who solves the problem – make the PHP script generate the same curves as JS does – will be payed (text box should also be included in rendered GD).