MCPcopy Create free account
hub / github.com/collidingScopes/shimmer / saveImage

Function saveImage

wavyImage.js:307–315  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

305}
306
307function saveImage(){
308 const link = document.createElement('a');
309 link.href = animation.toDataURL();
310
311 const date = new Date();
312 const filename = `shimmer_${date.toLocaleDateString()}_${date.toLocaleTimeString()}.png`;
313 link.download = filename;
314 link.click();
315}
316
317//shortcut hotkey presses
318document.addEventListener('keydown', function(event) {

Callers 1

wavyImage.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected