'003' by rsegoly


Report abuse

Created on June 11, 2015 08:02 | Updated over 4 years ago

Link: https://github.com/ronisegoly/yozma001

003

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
}