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
| // | |
| // EiBotBoard.cpp | |
| // QuickDirtyTest | |
| // | |
| // Created by Craig Pickard on 4/1/16. | |
| // | |
| // | |
| #include "EiBotBoard.hpp" |
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 "cinder/app/App.h" | |
| #include "cinder/app/RendererGl.h" | |
| #include "cinder/gl/gl.h" | |
| #include "cinder/Surface.h" | |
| #include "cinder/Capture.h" | |
| #include "cinder/Camera.h" | |
| #include "cinder/Text.h" | |
| #include "cinder/Log.h" | |
| using namespace ci; |
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
| var finder = require('findit')(process.argv[2] || '.'); | |
| var path = require('path'); | |
| var htmlparser = require('htmlparser2'); | |
| var fs = require('fs'); | |
| var jsdom = require("jsdom"); | |
| finder.on('directory', function (dir, stat, stop) { | |
| var base = path.basename(dir); | |
| if (base === '.git' || base === 'node_modules') stop() | |
| else console.log(dir + '/') |
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 NUM_PARTICLES = 75; // define a constant that represents the number of particles in the system | |
| Particle [] ourParticles = new Particle[NUM_PARTICLES]; // a global array to store our particles | |
| /* | |
| a global arraylist to store our triangle objects. | |
| we use an arraylist as opposed to an array because we need the ability to | |
| dynamincally change its size, because every frame will have a different number | |
| of triangles, as determined by the number of neighbours that each particle has. | |
| */ |
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
| import peasy.*; | |
| Flock flock; | |
| int boundary = 500; | |
| PeasyCam cam; | |
| // GUI | |
| import controlP5.*; |
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 "cinder/app/App.h" | |
| #include "cinder/app/RendererGl.h" | |
| #include "cinder/gl/gl.h" | |
| #include "cinder/Capture.h" | |
| #include "cinder/Utilities.h" | |
| #include "cinder/Log.h" | |
| #include "cinder/CameraUi.h" | |
| #define PIXEL_SIZE 40 |
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 "cinder/app/App.h" | |
| #include "cinder/app/RendererGl.h" | |
| #include "cinder/gl/gl.h" | |
| #include "cinder/Surface.h" | |
| #include "cinder/Capture.h" | |
| #include "cinder/Camera.h" | |
| #include "cinder/Text.h" | |
| #include "cinder/Log.h" | |
| using namespace ci; |
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 "cinder/app/App.h" | |
| #include "cinder/app/RendererGl.h" | |
| #include "cinder/gl/gl.h" | |
| #include "cinder/Rand.h" | |
| #include <fstream> | |
| #include "Kinect2.h" | |
| #include <iostream> | |
| #include "cinder/Log.h" |
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
| ConcurrentCircularBuffer<Surface8u> *mFrameQueue; | |
| std::thread mWorkerThread; | |
| setup(){ | |
| mFrameQueue = new ConcurrentCircularBuffer<Surface8u>(90); | |
| mWorkerThread = std::thread([&] { | |
| console() << "CREATING WORKER THREAD " << std::endl; | |
| static int kNextFrame = 0; |
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
| Verifying my Blockstack ID is secured with the address 1kzVHEBPuAvPJu58tKbYvAB5Mkew9Y4YK https://explorer.blockstack.org/address/1kzVHEBPuAvPJu58tKbYvAB5Mkew9Y4YK |