Skip to content

Instantly share code, notes, and snippets.

@taiko19xx
Created December 23, 2013 14:55
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 taiko19xx/8098419 to your computer and use it in GitHub Desktop.
Save taiko19xx/8098419 to your computer and use it in GitHub Desktop.
プロジェクションマッピング勉強会(openFramework)で作ったスクリプトその1
// add [ int lineLine ] in testApp.h
void testApp::draw(){
if(lineLine == RECT_SIZE) {
lineLine = 0;
}
ofSetColor(255, 255, 255, 255-lineLine);
ofRect(0, 0+lineLine, RECT_SIZE, 20);
// ofxSyphon
m_syphonClient.draw(50, 50);
m_mainOutputSyphonServer.publishScreen();
lineLine = lineLine + 5;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment