diff options
author | gennyble <gen@nyble.dev> | 2023-10-09 20:20:16 -0500 |
---|---|---|
committer | gennyble <gen@nyble.dev> | 2023-10-09 20:20:16 -0500 |
commit | 3ad73998fe7bbb146aa124bc22729afe98d77c4c (patch) | |
tree | 6840a9bc9efc682df8133ca53274cffcb3654a86 /src/lib.rs | |
parent | db422e0c983d7543d4d5e742630b29e36c55cbd4 (diff) | |
download | colorsquash-3ad73998fe7bbb146aa124bc22729afe98d77c4c.tar.gz colorsquash-3ad73998fe7bbb146aa124bc22729afe98d77c4c.zip |
some docs
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib.rs b/src/lib.rs index d4b852b..8d94c8e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -53,7 +53,7 @@ impl<T: Count> Default for SquasherBuilder<T> { Self { max_colours: T::from_usize(255), difference_fn: Box::new(difference::rgb_difference), - tolerance: 2.0, + tolerance: 1.0, } } } @@ -75,7 +75,7 @@ impl<T: Count> Squasher<T> { let mut this = Self::from_parts( max_colors_minus_one, Box::new(difference::rgb_difference), - 2.0, + 1.0, ); this.recolor(buffer); |