tweak tweak
This commit is contained in:
parent
9725a1402a
commit
1f70e107cd
1 changed files with 2 additions and 2 deletions
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue