Skip to content

Instantly share code, notes, and snippets.

Rick Companje companje

Block or report user

Report or block companje

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View ofbek1.cpp
#include "testApp.h"
//--------------------------------------------------------------
void testApp::setup(){
ofSetFrameRate(60); //limit framerate to 60
ofSetBackgroundAuto(false); //turn off automatic background clearing
ofEnableAlphaBlending(); //enable transparency
ofBackground(0); //set background to black
ball.x = 100; //initial position for ball
View ofBek2.cpp
//////////// testApp.h
#pragma once
#include "ofMain.h"
class Ball {
public:
ofPoint pos; //it's better to use ofVec3f instead of ofPoint
ofPoint vel;
View ofBek3.cpp
#pragma once
#include "ofMain.h"
#define NUM 100
class Ball {
public:
ofPoint pos; //it's better to use ofVec3f instead of ofPoint
ofPoint vel;
View arduino.cpp
///////////////////////////////////////////////
#pragma once
#include "ofMain.h"
class testApp : public ofBaseApp{
public:
void setup();
void update();
View gist:1534753
/*
* fingerDetector.cpp
* openFrameworks
*
* Created by Dani Quilez on 3/30/09.
* Copyright 2009 Mechanics_of_destruction. All rights reserved.
*
*/
#include "fingerDetector.h"
View gist:1540254
String lines[];
String invoer = "";
void setup() {
size(500,500);
strokeWeight(2);
lines = loadStrings("netnummers.txt");
}
void draw() {
View gist:1621018
PImage img;
color rood = color(255,0,0);
color blauw = color(0,0,255);
void setup() {
size(500, 500);
img = new PImage(100,100);
background(255);
}
View gist:1656945
@echo off
cd /d %0\..
SetLocal EnableDelayedExpansion
set menucount=0
call :MenuAdd Run "Run Globe4D"
call :MenuAdd PresentMode "Reboot to Globe4D Present Mode"
call :MenuAdd WindowsMode "Reboot to Windows"
call :MenuAdd IniSettings "Edit Globe4D settings file"
call :MenuAdd UserAccountControl "User Account Control Settings"
View gist:2761049
//hulp bij vraag 23
for (int i=0; i<4; i++) {
ofSetColor(255,0,0); //vertices = rood
ofCircle(v[i],6);
ofSetColor(255,255,0); //texcoords = geel
ofCircle(t[i],3);
}
@companje
companje / testApp.cpp
Created May 21, 2012
Cube to Sphere Deformation
View testApp.cpp
#include "testApp.h"
#define foreach(t,v) for(typeof(v.begin()) p=v.begin(); p!=v.end(); p++) { typeof(*p) &t=*p;
#define endfor }
class Vertex : public ofVec3f {
public:
Vertex(float x, float y) : ofVec3f(x,y) {}
Vertex(ofVec3f v) { set(v); }
ofFloatColor color;
You can’t perform that action at this time.