Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/GoogleChrome/samples
/ getImageData
Function
getImageData
idle-detection/script.mjs:84–86 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
82
};
83
84
const
getImageData = () => {
85
return
ctx.getImageData(0, 0, canvas.width, canvas.height);
86
};
87
88
const
putImageData = (imageData) => {
89
ctx.putImageData(imageData, 0, 0);
Callers
1
script.mjs
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected