Examples here use the default settings, see the VidStab readme on GitHub for more advanced instructions.
Here's an example video I made
brew install ffmpeg --with-libvidstab
color[] colors = new color[4]; | |
PVector[] vertices = new PVector[4]; | |
int colorIndexOffset = 0; | |
long lastTime = 0; | |
void setup() |
/// 1. Download the zip file here: https://github.com/obviousjim/ofxDelaunay | |
/// 2. Extract it into your data/openFrameworks/addons folder of ofSketch. | |
/// 3. Make sure that the folder is called ofxDelaunay, not ofxDelaunay-master or something. | |
/// 4. Open ofSketch and paste the following code into a new sketch. | |
/// 5. Using the "Addons" button (+ in a circle next to the paperclip), scroll down and make sure ofxDelaunay is checked. | |
/// 6. Run! | |
#include "ofxDelaunay.h" | |
ofxDelaunay triangulation; |
void setup() { | |
} | |
void draw() { | |
ofDrawBitmapStringHighlight("Hello Gist!", 105, 120, ofColor::white, ofColor::black); | |
} |
class Ball{ | |
public: | |
ofVec2f position; | |
ofVec2f velocity; | |
int radius; | |
ofColor color; |
########################################################################################## | |
# CONFIGURE CORE PLATFORM MAKEFILE | |
# This file is where we make platform and architecture specific configurations. | |
# This file can be specified for a generic architecture or can be defined as variants. | |
# For instance, normally this file will be located in a platform specific subpath such | |
# as $(OF_ROOT)/libs/openFrameworksComplied/linux64. | |
# | |
# This file will then be a generic platform file like: | |
# |
ofSoundPlayer dubstep; // From bensound.com | |
ofSoundPlayer ping; // From bensound.com | |
ofSoundPlayer pong; // From freesound.org. | |
ofSoundPlayer laser; // From freesound.org | |
void setup() { | |
dubstep.loadSound("bensound-dubstep.mp3"); | |
dubstep.setVolume(0.75f); | |
dubstep.play(); | |
ofVideoGrabber grabber; | |
ofPixels filteredPixels; | |
ofTexture filteredTexture; | |
std::vector<ofTexture> buffer; | |
int numFramesInBuffer; | |
ofEasyCam cam; |
import processing.serial.*; | |
import java.text.SimpleDateFormat; | |
import java.util.Date; | |
Serial myPort; | |
int lineFeedChar = 10; | |
String lastRow = ""; | |
int currentY = 0; |
Examples here use the default settings, see the VidStab readme on GitHub for more advanced instructions.
Here's an example video I made
brew install ffmpeg --with-libvidstab
// | |
// Copyright (c) 2017 Christopher Baker <https://christopherbaker.net> | |
// | |
// SPDX-License-Identifier: MIT | |
// | |
#include "ConvexHull.h" | |