ontext.strokeStyle="#AA3311";
    spline_context.stroke();
    spline_context.setLineDash([]);
    spline_context.closePath();

    // guides
    if(do_guides){
        min_d = Math.pow(spline_xs[0] - client_to_x(client_x), 2) + Math.pow(spline_ys[0] - client_to_y(client_y), 2);
        min_i = 0;
        for(var i = 1; i < spline_n; ++i){
            var di = Math.pow(spline_xs[i] - client_to_x(client_x), 2) + Math.pow(spline_ys[i] - client_to_y(client_y), 2);
            if(di < min_d){
                mi