Skip to content

Instantly share code, notes, and snippets.

@microcosm
Created December 13, 2018 18:51
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 microcosm/3d10f0862e5cdef7f94af883e951f312 to your computer and use it in GitHub Desktop.
Save microcosm/3d10f0862e5cdef7f94af883e951f312 to your computer and use it in GitHub Desktop.
#include "ofApp.h"
/* Begin description
{
//Write your description here
}
End description */
/* Snippet begin */
void ofApp::setup(){
ofSetWindowShape(500, 500);
gif.setup("out/filename", 12); //Change 12 to the number of frames you want
//Add other setup you want
}
void ofApp::update(){
//Updates you want in here
}
void ofApp::draw(){
gif.begin();
{
//Draw what you want in here
}
gif.endCaptureDraw();
}
/* Snippet end */
void ofApp::other(){
//Code you don't...
}
void ofApp::things(){
//...want in the published snippet
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment