diff --git a/dither4.js b/dither4.js index f74101d..9e12618 100644 --- a/dither4.js +++ b/dither4.js @@ -420,6 +420,7 @@ function decimate(input, palette, n) { error.blue[x] += nextError.b; */ + /* error.right.r = nextError.r / 2; error.right.g = nextError.g / 2; error.right.b = nextError.b / 2; @@ -427,6 +428,7 @@ function decimate(input, palette, n) { error.red[x] += nextError.r / 2; error.green[x] += nextError.g / 2; error.blue[x] += nextError.b / 2; + */ /* error.right.r = nextError.r / 2; @@ -446,7 +448,6 @@ function decimate(input, palette, n) { error.blue[x + 1] += nextError.b / 8; */ - /* error.right.r = nextError.r / 4; error.right.g = nextError.g / 4; error.right.b = nextError.b / 4; @@ -462,7 +463,6 @@ function decimate(input, palette, n) { error.red[x + 1] += nextError.r / 4; error.green[x + 1] += nextError.g / 4; error.blue[x + 1] += nextError.b / 4; - */ // 442 is the 3d distance across the rgb cube fitness[x] = 442 - (nextError.magnitude());