This commit is contained in:
Dragon Fire
2020-06-13 19:26:50 -04:00
parent 48dab01d86
commit c05803cfa2
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "xiao",
"version": "116.24.0",
"version": "116.24.1",
"description": "Your personal server companion.",
"main": "Xiao.js",
"scripts": {
+1 -1
View File
@@ -64,7 +64,7 @@ module.exports = class CanvasUtil {
const data = ctx.getImageData(x, y, width, height);
for (let i = 0; i < height; i++) {
for (let j = 0; j < width; j++) {
const dest = ((j * width) + i) * 4;
const dest = ((i * width) + j) * 4;
const grey = Number.parseInt(
(0.2125 * data.data[dest]) + (0.7154 * data.data[dest + 1]) + (0.0721 * data.data[dest + 2]), 10
);