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
| //This is a program for a touchscreen population map interactive | |
| int population; | |
| PImage Map; | |
| void setup(){ | |
| size(1920,1080); | |
| population = 2470; //This will be a list or loaded .csv with real data | |
| Map = loadImage("OLFMAP.jpg"); //This might also be an array of images corrolated with the data points | |
| } |
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 tireX; | |
| int tireY; | |
| int tireSize; | |
| int groundX; | |
| int groundWidth; | |
| float rotateTire; | |
| PImage ground; | |
| PImage tire; | |
| //---------------------global variable | |
| int sunsize = 30; |
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 tireX; | |
| int tireY; | |
| int tireSize; | |
| int groundX; | |
| int groundWidth; | |
| float rotateTire; | |
| PImage ground; | |
| PImage tire; | |
| 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
| void setup(){//setup runs once, draw loops | |
| size(640,640); //still thinking about the rapberryPi screens | |
| frameRate(14); //default framrate was very fast | |
| noCursor();//the white arrow is not allowed | |
| } | |
| void draw(){ | |
| float a = random(25,28); //Random: variety is the spice of life | |
| float b = random(height-60,height-20);//system variables ARE super useful | |
| int c = width/2; |
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
| /* | |
| This multiple line comment is a nice option, | |
| it could be used for more full descriptions of the | |
| funciton of the program over multiple lines. | |
| */ | |
| //This section of code establishes global setup. | |
| void setup(){ | |
| //'println' can be used to show messages in the console. | |
| println("setup begin"); |