@ -439,25 +439,28 @@ function generate($params, $filename, $assetPath) {
$angle=1*k($params,'bezier');
// Midpoint between the two ends
$A=[
$M=[
'x'=>($from['x']+$to['x'])/2,
'y'=>($from['y']+$to['y'])/2
];
// Derived from http://math.stackexchange.com/a/383648 and http://www.wolframalpha.com/input/?i=triangle+%5B1,1%5D+%5B5,2%5D+%5B1-1%2Fsqrt(3),1%2B4%2Fsqrt(3)%5D