| 7 | */ |
| 8 | |
| 9 | void ofApp::setup() |
| 10 | { |
| 11 | ofSetWindowShape(1920, 1080); |
| 12 | ofSetWindowPosition(ofGetScreenWidth()/2 - ofGetWidth()/2, 0); |
| 13 | // create a color picker (passing in a color is optional) // |
| 14 | picker = new ofxDatGuiColorPicker("COLOR PICKER", ofColor::fromHex(0xCECECE)); |
| 15 | picker->setAnchor(ofxDatGuiAnchor::TOP_LEFT); |
| 16 | |
| 17 | // and register a callback to listen for change events // |
| 18 | picker->onColorPickerEvent(this, &ofApp::onColorPickerEvent); |
| 19 | } |
| 20 | |
| 21 | void ofApp::onColorPickerEvent(ofxDatGuiColorPickerEvent e) |
| 22 | { |
nothing calls this directly
no test coverage detected