Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
Upcoming SlideShare
openFrameworks 動きを生みだす様々なアルゴリズム - 多摩美メディアアートII
Next
Download to read offline and view in fullscreen.

Share

openFrameworks入門 - 多摩美メディアアートII

Download to read offline

Related Books

Free with a 30 day trial from Scribd

See all

Related Audiobooks

Free with a 30 day trial from Scribd

See all

openFrameworks入門 - 多摩美メディアアートII

  1. 1. ‣
  2. 2. ‣‣‣‣
  3. 3. ‣‣
  4. 4. ‣‣‣ http://www.creativeapplications.net/category/openframeworks/
  5. 5. ‣‣ http://www.openframeworks.cc/download‣
  6. 6. ‣‣‣ Mac OSX - XCode‣ Windows - Code::Blocks Visual Studio 2010‣ Linux - Code::Blocks
  7. 7. ‣‣‣ http://developer.apple.com/programs/register/
  8. 8. ‣‣‣‣‣‣
  9. 9. ‣‣‣‣‣
  10. 10.
  11. 11. ‣‣‣‣‣
  12. 12. ‣‣‣ ‣‣‣
  13. 13.
  14. 14.
  15. 15.
  16. 16.
  17. 17. ‣ ‣‣ ‣
  18. 18. ‣‣‣‣‣‣
  19. 19. #pragma once#include "ofMain.h"#include "ofxiPhone.h"#include "ofxiPhoneExtras.h"class testApp : public ofxiPhoneApp {!public:! void setup();! void update();! void draw();! void exit();!! void touchDown(ofTouchEventArgs &touch);! void touchMoved(ofTouchEventArgs &touch);! void touchUp(ofTouchEventArgs &touch);! void touchDoubleTap(ofTouchEventArgs &touch);! void lostFocus();! void gotFocus();! void gotMemoryWarning();! void deviceOrientationChanged(int newOrientation);
  20. 20. #pragma once#include "ofMain.h"#include "ofxiPhone.h"#include "ofxiPhoneExtras.h"class testApp : public ofxiPhoneApp {!public:! void setup();! void update();! void draw();! void exit();!! void touchDown(ofTouchEventArgs &touch);! void touchMoved(ofTouchEventArgs &touch);! void touchUp(ofTouchEventArgs &touch);! void touchDoubleTap(ofTouchEventArgs &touch);! void lostFocus();! void gotFocus();! void gotMemoryWarning();! void deviceOrientationChanged(int newOrientation);
  21. 21. #pragma once#include "ofMain.h"#include "ofxiPhone.h"#include "ofxiPhoneExtras.h"class testApp : public ofxiPhoneApp {!public:! void setup();! void update();! void draw();! void exit();!! void touchDown(ofTouchEventArgs &touch);! void touchMoved(ofTouchEventArgs &touch);! void touchUp(ofTouchEventArgs &touch);! void touchDoubleTap(ofTouchEventArgs &touch);! void lostFocus();! void gotFocus();! void gotMemoryWarning();! void deviceOrientationChanged(int newOrientation);
  22. 22. #include "testApp.h"//--------------------------------------------------------------void testApp::setup(){}//--------------------------------------------------------------void testApp::update(){}//--------------------------------------------------------------void testApp::draw(){}//--------------------------------------------------------------void testApp::keyPressed(int key){}//--------------------------------------------------------------void testApp::keyReleased(int key){}//--------- ---------
  23. 23. #include "testApp.h"//--------------------------------------------------------------void testApp::setup(){}//--------------------------------------------------------------void testApp::update(){}//--------------------------------------------------------------void testApp::draw(){}//--------------------------------------------------------------void testApp::keyPressed(int key){}//--------------------------------------------------------------void testApp::keyReleased(int key){}//--------- ---------
  24. 24. #include "testApp.h"//--------------------------------------------------------------void testApp::setup(){}//--------------------------------------------------------------void testApp::update(){}//--------------------------------------------------------------void testApp::draw(){}//--------------------------------------------------------------void testApp::keyPressed(int key){}//--------------------------------------------------------------void testApp::keyReleased(int key){}//--------- ---------
  25. 25. ‣‣
  26. 26.
  27. 27. ‣‣‣‣ ‣
  28. 28. < >//--------------------------------------------------------------void testApp::update(){}//--------------------------------------------------------------void testApp::draw(){ ofCircle(512, 384, 200); Text}//--------------------------------------------------------------void testApp::exit(){}< >
  29. 29.
  30. 30. ‣‣‣‣
  31. 31. ‣‣‣
  32. 32. ‣‣‣ ‣ ‣ ‣‣ ‣
  33. 33. #include "testApp.h"//--------------------------------------------------------------void testApp::setup(){}//--------------------------------------------------------------void testApp::update(){}//--------------------------------------------------------------void testApp::draw(){ ofSetColor(0, 127, 255, 200); ofCircle(412, 384, 200); ofSetColor(255, 127, 0, 200); ofCircle(612, 384, 200);}< >
  34. 34.
  35. 35. ‣‣ ofEnableAlphaBlending();‣ ofSetCircleResolution( );‣ ofBackground(R, G, B);
  36. 36. #include "testApp.h"//--------------------------------------------------------------void testApp::setup(){! ofEnableAlphaBlending();! ofSetCircleResolution(64);! ofBackground(0, 0, 0);}//--------------------------------------------------------------void testApp::update(){!}//--------------------------------------------------------------void testApp::draw(){ ofSetColor(0, 127, 255, 200); ofCircle(412, 384, 200); ofSetColor(255, 127, 0, 200); ofCircle(612, 384, 200);!}< >
  37. 37. ‣‣‣ http://www.openframeworks.cc/documentation
  38. 38. ‣‣‣‣‣ http://www.openframeworks.cc/documentation?detail=ofGraphics‣
  • ssusera2955c

    Sep. 3, 2018
  • MoekoDoi1

    Jul. 18, 2018
  • ssuser343348

    Jul. 9, 2017
  • SenaKoga

    Aug. 1, 2016
  • MikimaroYonekura

    Mar. 10, 2016
  • kyriemiyajima

    Feb. 2, 2016
  • yumatanaka9

    Feb. 9, 2015
  • yoshi_h

    Dec. 12, 2014
  • ssuser8f613f

    Nov. 22, 2014
  • shinsukeltajima

    Nov. 8, 2014
  • m0Rya

    Sep. 30, 2014
  • sasakiP

    Jul. 1, 2014
  • diveormosh

    Feb. 21, 2014
  • katsuhikotaniguchi7

    Sep. 22, 2013
  • ke21

    Aug. 12, 2013
  • famipla

    Jun. 26, 2013
  • comporlock

    Apr. 1, 2012
  • nekouo

    Dec. 17, 2011

Views

Total views

10,413

On Slideshare

0

From embeds

0

Number of embeds

4,217

Actions

Downloads

121

Shares

0

Comments

0

Likes

18

×