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 map(float value, float min1, float max1, float min2, float max2) { | |
| return min2 + (value - min1) * (max2 - min2) / (max1 - min1); | |
| } |
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
| what_you_need = ' ' | |
| for days in range(71): | |
| what_you_need += 'you need to do what ' | |
| print(what_you_need) | |
| // Miles Hiroo | |
| // December 16, 2015 |
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
| bool ofxRSSDK::init(bool pGrabVideo, bool pUseTexture) | |
| { | |
| if (isConnected()) { | |
| ofLog(OF_LOG_WARNING, "ofxRSSDK: Do not call init while ofxRSSDK is running!"); | |
| return false; | |
| } | |
| clear(); | |
| bGrabVideo = pGrabVideo; | |
| bUseTexture = pUseTexture; |
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
| #define HWSERIAL Serial1 | |
| float brightness = 0; | |
| float inc = .1; | |
| int smoking = 14; | |
| int light = 22; | |
| void setup() { | |
| Serial.begin(9600); | |
| HWSERIAL.begin(9600); |
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
| Animation (Miles) | |
| AnimatedSprite √ | |
| Sequential √ | |
| Cellular Automata (Miles) | |
| GameOfLife √ (a bit slow, me or Python?) | |
| Spore1 (can’t do this until color()/get/pixels are fixed) | |
| Spore2 | |
| Wolfram |