Skip to content

Instantly share code, notes, and snippets.

@memish
Created September 26, 2018 17:26
Show Gist options
  • Select an option

  • Save memish/844dd29e9d1c97ac5666f720aa5515f6 to your computer and use it in GitHub Desktop.

Select an option

Save memish/844dd29e9d1c97ac5666f720aa5515f6 to your computer and use it in GitHub Desktop.
Practice Arrays
double[] phila = {2.85,6.02,4.74,3.94,5.21,3.34,3.06,4.11,8.35};
double[] seattle = {8.12,2.16,2.44,5.69,0.12,0.63,0.05,0.2,0.98};
double[] sandiego = {2.28,2.04,2.26,0.75,0.20,0.09,0.03,0.09,0.21};
double philaTot = 0;
double seattleTot = 0;
double sdTot = 0;
int space = 40;
void setup(){
size(600,400);
}
void draw(){
background(0);
fill(255,0,0);
int sx = 20;
int sy = 200;
fill(255);
}
void mousePressed() {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment