- This repository is not an official openFrameworks repository.
- Only part of functions of openFrameworks are implemented.
- (in Japanese) openFrameworksのアプリケーションをPythonのライブラリとして呼び出す実験|eqs|note
- guoguofish/pyOF: Python binding for openFrameworks
import sys
import numpy as np
sys.path.append('../bin')
import pyof as of
class ofApp(of.ofPyBaseApp):
def setup(self):
of.ofSetWindowTitle('Hello, openFrameworks!')
self.x = 0.0
self.y = 0.0
def update(self):
t = of.ofGetFrameNum()
self.x = 200 + 100 * np.cos(t * 0.1)
self.y = 200 + 100 * np.sin(t * 0.1)
def draw(self):
of.ofDrawCircle(self.x, self.y, 40)
if __name__ == '__main__':
app = ofApp()
app.run(400, 400, of.OF_WINDOW)
GPy: https://sheffieldml.github.io/GPy/
- Visual Studio 2017
- oF v0.11.0
- Python 3.7
- pybind11 2.4.3
- Set a path to your python to env
PYTHONPATH
- Put this project into
<oF_root>/apps/myApps
- Open
pyof.sln
and run build