Check out this JavaScript code snippet I wrote:
function Show(output, startX, startY){
var c = document.getElementById("myCanvas");
var context = c.getContext("2d");
context.arc(startX, startY, 3, 0, Math.PI*2, true);
context.fill();
context.arc(startX + 50, startY, 3, 0, Math.PI*2, true);
context.stroke();
}
Show(outputcpu, 50, 50);
Show(outputio, 70, 50);
I was hoping to see something like: o-o o-o
.
However, what I actually get is: o-o-o-o
.
Any ideas on how I can remove the center stroke? (I want the output to look like: o-o*-*o-o)