Created
September 17, 2023 13:32
-
-
Save subfission/94c283b4a3254a1889f24425d24e2877 to your computer and use it in GitHub Desktop.
Attempt to repair dead screen pixels or burn in
This file contains hidden or 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
<!DOCTYPE html> | |
<html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="description" content="Repair stuck pixels & Burnin"><title>Screen Pixel Repair</title><style type="text/css">body,html,#v{margin:0;display:block;}</style></head> | |
<script type="text/javascript">function s() {setInterval(v, 10);} function v(){c=document.getElementById("v"); | |
c.width=window.innerWidth;c.height=window.innerHeight;var b=768;var t=c.getContext("2d");var d=t.createImageData(b,b); | |
for (var i=0;i<b*b; i++){var p=i*4;d.data[p+3]=255;d.data[p+0]=Math.random()>=0.5?255:0;d.data[p+1]=Math.random()>=0.5?255:0;d.data[p+2]=Math.random()>=0.5?255:0;} | |
for (var y=0;y<c.height;y+=b){for (var x=0;x<c.width;x+=b){t.putImageData(d,x,y);}} | |
} | |
</script> | |
<body onload="s()"><canvas id="v"></canvas></body></html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment