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 boolean variable | |
| boolean switchstatus = false; | |
| 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
| // Constrain vs map v1 | |
| // Steve Lambert 2016-09-20 | |
| // variables | |
| int ball1fill; // ball #1 fill color | |
| int ball2fill; // ball #2 fill color | |
| void setup(){ | |
| size(500,300); | |
| background(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
| //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); |
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
| //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
| /* 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
| // 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
| 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
| 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
| /* | |
| A timer to show people how long they have talked. | |
| todo: | |
| - fix last bit of red? | |
| */ | |
| // Variables | |
| int time; |