Created
August 29, 2019 10:55
-
-
Save chelovekula/5d0ea2cc30092535891312549db14d3d to your computer and use it in GitHub Desktop.
canvas_zaloopa
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function getCanvasZaloopa() { | |
try { | |
var a = document.createElement("canvas").getContext("2d"); | |
a.fillStyle = "rgb(3,3,7)"; | |
a.fillRect(0, 0, 1, 1); | |
a.fill(); | |
if(3 !== a.getImageData(0, 0, 1, 1).data[0]) { | |
return true; | |
} | |
else { | |
return false; | |
} | |
} catch (a) { | |
return false; | |
} | |
} | |
getCanvasZaloopa() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment