mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-26 14:19:11 +02:00
Fix
This commit is contained in:
+1
-1
@@ -111,7 +111,7 @@ class Util {
|
|||||||
const xs = Math.round(amplitude * Math.sin(2 * Math.PI * 3 * (j / height)));
|
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 ys = Math.round(amplitude * Math.cos(2 * Math.PI * 3 * (i / width)));
|
||||||
const dest = (j * stride) + (i * strideLevel);
|
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] = temp.data[src];
|
||||||
data.data[dest + 1] = temp.data[src + 1];
|
data.data[dest + 1] = temp.data[src + 1];
|
||||||
data.data[dest + 2] = temp.data[src + 2];
|
data.data[dest + 2] = temp.data[src + 2];
|
||||||
|
|||||||
Reference in New Issue
Block a user