png-to-matrix
Advanced tools
Comparing version 1.0.2 to 1.0.5
@@ -21,6 +21,6 @@ const getPixels = require("get-pixels") | ||
} | ||
if (rgbaIndex == 0) currentObj.r = pixels.data[k] | ||
if (rgbaIndex == 1) currentObj.g = pixels.data[k] | ||
if (rgbaIndex == 2) currentObj.b = pixels.data[k] | ||
if (rgbaIndex == 3) currentObj.a = pixels.data[k] | ||
if (rgbaIndex == 0) currentObj.a = pixels.data[k] | ||
if (rgbaIndex == 1) currentObj.r = pixels.data[k] | ||
if (rgbaIndex == 2) currentObj.g = pixels.data[k] | ||
if (rgbaIndex == 3) currentObj.b = pixels.data[k] | ||
}) | ||
@@ -27,0 +27,0 @@ callback(matrix) |
{ | ||
"name": "png-to-matrix", | ||
"version": "1.0.2", | ||
"version": "1.0.5", | ||
"description": "An image to 2D RGBA matrix conversion module", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package