on master help sign in
Debugger: nicer trace path.
commit1d2776b0586ed3c95f629223bfb6c40dd4f082e9 authorLaszlo Pandy <laszlo.pandy@prezi.com> dateWed 6 Nov 2013, 12:52 (13 years ago) parent02b02bd
1 file changed+12−3
runtime/Debugger.js+12−3
runtime/Debugger.js+12−3
@@ -349,10 +349,19 @@ function tracePathInit(runtime) {
349349 ctx.lineTo(p.x, p.y);
350350 }
351351 }
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+ }
352364 }
353− ctx.lineWidth = 1;
354− ctx.strokeStyle = "black";
355− ctx.stroke();
356365
357366 ctx.restore();
358367 }