This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for(auto line: pixels.getLines()){ | |
for(auto pixel: line.getPixels()){ | |
pixel[0] // -> red channel or gray in a grayscale image | |
auto lineAbovePixel = pixel - pixels.getWidth(); | |
lineAbovePixel[0] // read channel in pixel one line above | |
} | |
} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
listeners.push_back(gui.savePressedE.newListener([this]{ | |
auto saveTo = ofSystemSaveDialog(ofGetTimestampString() + ".json", "save settings"); | |
if(saveTo.bSuccess){ | |
auto path = std::filesystem::path(saveTo.getPath()); | |
auto folder = path.parent_path(); | |
auto basename = path.stem().filename().string(); | |
auto extension = ofToLower(path.extension().string()); | |
auto timelineDir = (folder / (basename + "_timeline")).string(); | |
if(extension == ".xml"){ | |
ofXml xml; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Inflation": { | |
"Inflation": { | |
"Circle": { | |
"circle_pct": "0", | |
"inner_radius": "0.99", | |
"outer_radius": "1" | |
}, | |
"Colors": { | |
"color_1": "0.956863, 0.8, 0, 1", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int main(){ | |
ofGLESWindowSettings settings; | |
settings.setGLESVersion(2); | |
ofCreateWindow(settings); | |
ofRunApp(new ofApp); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
listeners.push_back(m_bExportFrames.newListener([this](bool & record){ | |
if(record){ | |
auto path = ofSystemLoadDialog("Record to images:", true); | |
if(path.bSuccess){ | |
auto folderPath = path.getPath(); | |
ofxTextureRecorder::Settings settings(fbo.getTexture()); | |
settings.imageFormat = OF_IMAGE_FORMAT_JPEG; | |
settings.folderPath = folderPath; | |
recorder.setup(settings); | |
}else{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int main(){ | |
ofGLFWWindowSettings settings; | |
settings.decorated = false; | |
ofCreateWindow(settings); | |
ofRunApp(new ofApp); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
float m = 0; | |
float Q = 1.; | |
float a = 1.12; | |
vFragColor = asinh(a * Q * (color - m)) / Q; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "ofMain.h" | |
#include "ofApp.h" | |
//======================================================================== | |
int main(){ | |
ofGLFWWindowSettings settings; | |
settings.setGLVersion(3,3); | |
ofCreateWindow(settings); | |
ofRunApp(new ofApp); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
matrix: | |
#VisualStudio 2017 64 bit Building | |
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 | |
platform: x64 | |
TARGET: vs | |
VS_VER: 15 | |
VS_NAME: 2017 | |
ARCH: 64 | |
#VisualStudio 2017 32 bit Building | |
- APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2017 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- RLine(vector< char >::reverse_iterator _begin, vector< char >::reverse_iterator _end) to ofBuffer::RLine | |
- const string & operator*() to ofBuffer::RLine | |
- const string * operator->() to ofBuffer::RLine | |
- const string & asString() to ofBuffer::RLine | |
- ofBuffer::RLine & operator++() to ofBuffer::RLine | |
- ofBuffer::RLine operator++(int ) to ofBuffer::RLine | |
- bool operator!=(const ofBuffer::RLine &rhs) to ofBuffer::RLine | |
- bool operator==(const ofBuffer::RLine &rhs) to ofBuffer::RLine | |
- bool empty() to ofBuffer::RLine | |
- ofBuffer::RLine rbegin() to ofBuffer::Lines |