nt_to_x(client_x), 2) + Math.pow(synthesis_ys[i] - client_to_y(client_y), 2);
            if(di < min_d){
                min_d = di;
                min_i = i;
            }
        }
        synthesis_i = min_i;
        synthesis_context.setLineDash([4, 4]);
        synthesis_context.beginPath();
        synthesis_context.moveTo(x_to_client(synthesis_xs[min_i]), y_to_client(synthesis_ys[min_i]));
        synthesis_context.lineTo(client_x, client_y);
        synthesis_context.strokeStyle="#AA3311";
       