x_to_client(synthesis_xs[synthesis_n-1]), y_to_client(synthesis_ys[synthesis_n-1]));
    synthesis_context.strokeStyle="#AA3311";
    synthesis_context.stroke();
    synthesis_context.setLineDash([]);
    synthesis_context.closePath();

    // guides
    if(do_guides){
        min_d = Math.pow(synthesis_xs[0] - client_to_x(client_x), 2) + Math.pow(synthesis_ys[0] - client_to_y(client_y), 2);
        min_i = 0;
        for(var i = 1; i < synthesis_n; ++i){
            var di = Math.pow(synthesis_xs[i] - clie