Created
October 14, 2012 16:17
-
-
Save jywarren/3889063 to your computer and use it in GitHub Desktop.
SpectralWorkbench.org macro: Save offline
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
setup: function() { | |
// code to run on startup | |
$W.add_button("My Button",function(){ | |
window.open($W.canvas.toDataURL(),'_newtab').focus() // this may not work if popups are blocked | |
}) | |
}, | |
draw: function() { | |
// code to run every frame | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment