pixel-editor/js/_pixelEditorUtility.js

7 lines
157 B
JavaScript
Raw Normal View History

function isPixelEmpty(pixel) {
2020-04-04 10:41:56 +03:00
if ((pixel[0] == 0 && pixel[1] == 0 && pixel[2] == 0) || pixel[3] == 0) {
return true;
}
2020-04-04 10:41:56 +03:00
return false;
}