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
// Game Controller Example | |
// Steve Lambert around November 24, 2015 | |
// import libraries | |
import net.java.games.input.*; | |
import org.gamecontrolplus.*; | |
import org.gamecontrolplus.gui.*; | |
ControlIO control; | |
Configuration config; |
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
// Steve is the best | |
// It seems he can do anything. | |
// November 22, 2016 | |
int startTime = 0; | |
int currentTime = 0; | |
int endTime = 15000; | |
void setup() { |
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
/* | |
A timer to show people how long they have talked. | |
todo: | |
- fix last bit of red? | |
*/ | |
// Variables | |
int time; |
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 double7; | |
void setup() { | |
size(512, 512); | |
} | |
void draw(){ | |
double7 = double7er(mouseX); | |
println("double7: " + double7); |
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
void setup(){ | |
size(300,300); | |
smooth(); | |
} | |
void draw(){ | |
background(255); |
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
// Modulo Example | |
// Steve Lambert March 2, 2017 | |
// v0.2 | |
// initializing variables | |
int interval; // how often changes | |
int xPos; | |
int yPos; | |
int circleW = 10; |
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
/* My Zoog | |
* Steve Lambert | |
* Some time in 2011 | |
*/ | |
void setup() { | |
size(480, 120); | |
smooth(); | |
background(240); |
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
//Steve Lambert September 20, 2016 | |
//for and while loop demo v1 | |
void setup() { | |
size(500,500); | |
smooth(); | |
} // end setup | |
void draw() { |
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
// declare int variable | |
int clickcount = 0; | |
void setup(){ | |
size(500,500); | |
background(0); | |
} | |
void draw(){ | |
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
//Far out light show | |
//Steve Lambert September 20, 2016 v1 | |
// July 17, 2019 v1.1 | |
// declare int variable | |
int state = 0; | |
void setup(){ | |
size(500,500); | |
background(0); |