I\'m making a small app where children can fill preset illustrations with colours. I\'ve succesfully implemented an MS-paint style paint bucket using the flood fill argorith
Made something that works:
c = b.getPixel(xx,yy); if (c == to) continue; if (c != from) d = Math.pow(f1 - (c & 0xFF), 2) + Math.pow(f2 - (c >> 8 & 0xFF), 2) + Math.pow(f3 - (c >> 16 & 0xFF), 2) if (c == from || d < tres) {