This file contains 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
void makeGradientEdge_texture(int _x, int _y, float _scale, int _rotate90, ofMatrix4x4 _transformationMatrix, ofFbo & fbo){ | |
ofMatrix4x4 translate_offset; | |
translate_offset.makeTranslationMatrix(_x,_y,0); | |
ofMatrix4x4 scale_0; | |
scale_0.makeScaleMatrix(_scale,_scale,1); | |
ofMatrix4x4 temp_rotateM; | |
This file contains 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 "ofApp.h" | |
using namespace ofxCv; | |
using namespace cv; | |
const float dyingTime = 1; | |
void Glow::setup(const cv::Rect& track) { | |
color.setHsb(ofRandom(0, 255), 255, 255); | |
cur = toOf(track).getCenter(); |
This file contains 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 "ofApp.h" | |
//-------------------------------------------------------------- | |
void ofApp::setup(){ | |
parameters.setName("parameters"); | |
parameters.add(size.set("size",10,0,100)); | |
parameters.add(number.set("number",10,0,100)); | |
parameters.add(check.set("check",false)); | |
parameters.add(voidTest.set("voidTest")); | |
parameters.add(color.set("color",ofColor(127),ofColor(0,0),ofColor(255))); |
This file contains 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 "ofApp.h" | |
//-------------------------------------------------------------- | |
void ofApp::setup(){ | |
parameters.setName("parameters"); | |
parameters.add(size.set("size",10,1,100)); | |
parameters.add(number.set("number",10,1,100)); | |
parameters.add(check.set("check",false)); | |
parameters.add(voidTest.set("voidTest")); | |
parameters.add(color.set("color",ofColor(127),ofColor(0,0),ofColor(255))); |
This file contains 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
<body> | |
<style> | |
.square-box { | |
width: 33%; | |
height: 0; | |
padding-top: 33%; | |
position: absolute; | |
right: 20px; | |
top: 20px; | |
} |
This file contains 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
''' | |
/////////////////////////////////////////////////////////////////////////// | |
// | |
// Copyright (c) 2018, STEREOLABS. | |
// | |
// All rights reserved. | |
// | |
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | |
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | |
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
This file contains 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
''' | |
/////////////////////////////////////////////////////////////////////////// | |
// | |
// Copyright (c) 2018, STEREOLABS. | |
// | |
// All rights reserved. | |
// | |
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | |
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | |
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
This file contains 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 "ofApp.h" | |
//-------------------------------------------------------------- | |
void ofApp::setup(){ | |
ofSetBackgroundColor(0); | |
// set up the GUI for tweaking params | |
gui.setup(); | |
gui.add(ui_useCam.setup ("use webcam", false)); //use live webcam? | |
gui.add(ui_useVideo.setup ("use video", false)); |
This file contains 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
// Test program for the PEmbroider library for Processing: | |
// Making a multi-color embroidery based on imdividualy colored pngs | |
import processing.embroider.*; | |
PEmbroiderGraphics E; | |
void setup() { | |
noLoop(); | |
size (1400, 1400); | |
float cx = width/2; |
This file contains 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
pi@raspberrypi:~/openFrameworks/examples/gui/guiExample $ cd .. | |
pi@raspberrypi:~/openFrameworks/examples/gui $ cd guiExample_macOS | |
pi@raspberrypi:~/openFrameworks/examples/gui/guiExample_macOS $ make | |
VER ID IS 10 | |
using newer build and GLFW window | |
Compiling OF library for Release | |
make[1]: Entering directory '/home/pi/openFrameworks/libs/openFrameworksCompiled/project' | |
VER ID IS 10 | |
using newer build and GLFW window | |
VER ID IS 10 |
NewerOlder