Skip to content

Instantly share code, notes, and snippets.

@diegogangl
Created May 11, 2012 23:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save diegogangl/2662968 to your computer and use it in GitHub Desktop.
Save diegogangl/2662968 to your computer and use it in GitHub Desktop.
A little snippet you can put in your draw function to save every frame to your desktop (or any other path).
# Save frames to png images in Zajal 0.3.3
def saveFrames
image = grab_screen
path = '/Users/yourName/Desktop/frame_ ' + frame.to_s() + '.png'
image.save( path )
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment