From 1f70e107cd3c2d6aedc8e1e4ce0fd10dab14b3d8 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Sat, 5 Nov 2022 20:22:04 -0700 Subject: [PATCH] tweak tweak --- dither4.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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());