From d60d3073bdee55c83f21c4848056df3156e2d3db Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Tue, 28 Dec 2021 22:18:40 +0000 Subject: [PATCH] fixup --- .docs/img2brush/img2brush.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.docs/img2brush/img2brush.js b/.docs/img2brush/img2brush.js index b1fe3d0..ccbea47 100644 --- a/.docs/img2brush/img2brush.js +++ b/.docs/img2brush/img2brush.js @@ -84,7 +84,8 @@ function pixels2tsv(pixels) { for(let y = 0; y < pixels.height; y++) { let row = []; for(let x = 0; x < pixels.width; x++) { - row.push((pixels.data[((y*pixels.width + x) * 4) + 3] / 255).toFixed(3)); + // No need to rescale here - this is done automagically by WorldEditAdditions. + row.push(pixels.data[((y*pixels.width + x) * 4) + 3] / 255); } result += row.join(`\t`) + `\n`; }