mirror of
https://github.com/lospec/pixel-editor.git
synced 2023-08-10 21:12:51 +03:00
7 lines
157 B
JavaScript
7 lines
157 B
JavaScript
function isPixelEmpty(pixel) {
|
|
if ((pixel[0] == 0 && pixel[1] == 0 && pixel[2] == 0) || pixel[3] == 0) {
|
|
return true;
|
|
}
|
|
|
|
return false;
|
|
} |