on master help sign in
Debugger: nicer trace path.
1d2776bLaszlo Pandy
runtime/Debugger.js+12−3
@@ -349,10 +349,19 @@ function tracePathInit(runtime) {
349 ctx.lineTo(p.x, p.y);
349 ctx.lineTo(p.x, p.y);
350 }
350 }
351 }
351 }
352+ ctx.lineWidth = 1;
353+ ctx.strokeStyle = "#888a85";
354+ ctx.stroke();
355+
356+ for (var i=0; i < points.length; i++)
357+ {
358+ var p = points[i];
359+ ctx.beginPath();
360+ ctx.arc(p.x, p.y, 2, 0, Math.PI * 2);
361+ ctx.fillStyle = "#2e3436";
362+ ctx.fill();
363+ }
352 }
364 }
353− ctx.lineWidth = 1;
354− ctx.strokeStyle = "black";
355− ctx.stroke();
356
365
357 ctx.restore();
366 ctx.restore();
358 }
367 }