Skip to content

Commit

Permalink
Fix TSP point rendenring issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ajlopez committed Mar 9, 2014
1 parent d6bb66e commit f24a19b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions samples/tspdistr/index.html
Expand Up @@ -45,13 +45,13 @@ <h1>Travelling Salesman Problem Sample</h1>
function drawPoints()
{
context.clearRect(0, 0, canvas.width, canvas.height);
context.beginPath();
for (var k = 0; k < 5; k++)
for (var j = 0; j < 4; j++) {
context.beginPath();
context.arc(50 + 100 * k, 50 + 100 * j, 10, 0, Math.PI * 2, true);
context.closePath();
context.fill();
}
context.closePath();
context.fill();
}

function drawValues(points, values)
Expand Down
6 changes: 3 additions & 3 deletions samples/tsphtml/index.html
Expand Up @@ -19,13 +19,13 @@ <h1>Travelling Salesman Problem Sample</h1>
function drawPoints()
{
context.clearRect(0, 0, canvas.width, canvas.height);
context.beginPath();
for (var k = 0; k < 5; k++)
for (var j = 0; j < 4; j++) {
context.beginPath();
context.arc(50 + 100 * k, 50 + 100 * j, 10, 0, Math.PI * 2, true);
context.closePath();
context.fill();
}
context.closePath();
context.fill();
}

function drawValues(points, values)
Expand Down
6 changes: 3 additions & 3 deletions samples/tspserver/index.html
Expand Up @@ -45,13 +45,13 @@ <h1>Travelling Salesman Problem Sample</h1>
function drawPoints()
{
context.clearRect(0, 0, canvas.width, canvas.height);
context.beginPath();
for (var k = 0; k < 5; k++)
for (var j = 0; j < 4; j++) {
context.beginPath();
context.arc(50 + 100 * k, 50 + 100 * j, 10, 0, Math.PI * 2, true);
context.closePath();
context.fill();
}
context.closePath();
context.fill();
}

function drawValues(points, values)
Expand Down

0 comments on commit f24a19b

Please sign in to comment.