From 2d59fe59f6e7bc7e718746bffef1d5171be8d729 Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Sat, 28 Oct 2017 00:55:00 +0000 Subject: [PATCH] Fix --- util/Util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/Util.js b/util/Util.js index cf6d8d13..bff2c77f 100644 --- a/util/Util.js +++ b/util/Util.js @@ -111,7 +111,7 @@ class Util { const xs = Math.round(amplitude * Math.sin(2 * Math.PI * 3 * (j / height))); const ys = Math.round(amplitude * Math.cos(2 * Math.PI * 3 * (i / width))); const dest = (j * stride) + (i * strideLevel); - const src = (j + ys) * (stride + (i + xs)) * strideLevel; + const src = ((j + ys) * stride) + ((i + xs) * strideLevel); data.data[dest] = temp.data[src]; data.data[dest + 1] = temp.data[src + 1]; data.data[dest + 2] = temp.data[src + 2];