Skip to content

Instantly share code, notes, and snippets.

View RichardRRodriguez-1-OU's full-sized avatar

RichardRRodriguez-1-OU

View GitHub Profile
//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
}
int tireX;
int tireY;
int tireSize;
int groundX;
int groundWidth;
float rotateTire;
PImage ground;
PImage tire;
//---------------------global variable
int sunsize = 30;
int tireX;
int tireY;
int tireSize;
int groundX;
int groundWidth;
float rotateTire;
PImage ground;
PImage tire;
void setup(){
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 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");