Permalink
Browse files

coasline-2 bugfix

  • Loading branch information...
jeremy0613 committed Dec 16, 2017
1 parent 2f26b32 commit 6a4b4cd1d92b9e817681b0cd45ac726d6c68303b
Showing with 4 additions and 4 deletions.
  1. +4 −4 wip/coastline-2/index.php
@@ -147,7 +147,7 @@
}
}
// loop all the found colors
for(i in c) {
for(var i in c) {
if (c.hasOwnProperty(i)) {
// if this color was found more often than max then replace it
if(c[i].i > maxa.i) {
@@ -169,9 +169,9 @@
// then set it to the next mst common color
ctx.fillStyle=$w.color.rgbToHex(maxb.c[0],maxb.c[1],maxb.c[2]);
ctx.fillRect(x,y,1,1);
p[x][y][0] = maxb.c[0];
p[x][y][1] = maxb.c[1];
p[x][y][2] = maxb.c[2];
p[y][x][0] = maxb.c[0];
p[y][x][1] = maxb.c[1];
p[y][x][2] = maxb.c[2];
}
}
}

0 comments on commit 6a4b4cd

Please sign in to comment.