Engineering Projects/Poppit/Howard Community College/Fall2011/502 1+1=11/Full Code

Link to project 1+1=11 team page.

Full Processing code:

//Poppit balloon duplication program
PImage img;

void setup() {
  size(1026, 769);
  //Input dimensions of image in "size", if known.
  img=loadImage("Poppit2.png");
  //Input file name and type in "loadImage". Required.
}

//Color designations "cpX_Y" denote location based on balloon grid (ie, "cp1_1" is the bottom-left most balloon, "cp15_10" is the top-right most balloon).
void draw() {
  image(img, 0, 0);
  stroke(255);

  //Columns 1&2
  color cp1_10 = get(295, 50);
  fill(cp1_10);
  ellipse(295, 50, 32, 32);

  color cp1_9 = get(295, 105);
  fill(cp1_9);
  ellipse(295, 105, 32, 32);

  color cp2_10 = get(334, 50);
  fill(cp2_10);
  ellipse(334, 50, 32, 32);

  color cp2_9 = get(334, 105);
  fill(cp2_9);
  ellipse(334, 105, 32, 32);

  color cp1_8 = get(295, 160);
  fill(cp1_8);
  ellipse(295, 160, 32, 32);

  color cp1_7 = get(295, 215);
  fill(cp1_7);
  ellipse(295, 215, 32, 32);

  color cp2_8 = get(334, 160);
  fill(cp2_8);
  ellipse(334, 160, 32, 32);

  color cp2_7 = get(334, 215);
  fill(cp2_7);
  ellipse(334, 215, 32, 32);

  color cp1_6 = get(295, 275);
  fill(cp1_6);
  ellipse(295, 275, 32, 32);

  color cp1_5 = get(295, 330);
  fill(cp1_5);
  ellipse(295, 330, 32, 32);

  color cp2_6 = get(334, 275);
  fill(cp2_6);
  ellipse(334, 275, 32, 32);

  color cp2_5 = get(334, 330);
  fill(cp2_5);
  ellipse(334, 330, 32, 32);
  
  color cp1_4 = get(295, 385);
  fill(cp1_4);
  ellipse(295, 385, 32, 32);
  
  color cp1_3 = get(295, 440);
  fill(cp1_3);
  ellipse(295, 440, 32, 32);
  
  color cp2_4 = get(334, 385);
  fill(cp2_4);
  ellipse(334, 385, 32, 32);
  
  color cp2_3 = get(334, 440);
  fill(cp2_3);
  ellipse(334, 440, 32, 32);
  
  color cp1_2 = get(295, 495);
  fill(cp1_2);
  ellipse(295, 495, 32, 32);
  
  color cp1_1 = get(295, 550);  
  fill(cp1_1);
  ellipse(295, 550, 32, 32);
  
  color cp2_2 = get(334, 495);
  fill(cp2_2);
  ellipse(334, 495, 32, 32);
  
  color cp2_1 = get(334, 550);
  fill(cp2_1);
  ellipse(334, 550, 32, 32);
  
  //columns 3&4  
  color cp3_1 = get(376, 550);
  fill(cp3_1);
  ellipse(376, 550, 32, 32);
  
  color cp3_2 = get(376, 495);
  fill(cp3_2);
  ellipse(375, 495, 32, 32);
  
  color cp4_1 = get(416, 550);
  fill(416, 550);
  ellipse(416, 550, 32, 32);
  
  color cp4_2 = get(416, 495);
  fill(416, 495);
  ellipse(416, 495, 32, 32);
  
  color cp3_3 = get(376, 385);
  fill(cp3_3);
  ellipse(376, 385, 32, 32);
  
  color cp3_4 = get(376, 440);
  fill(cp3_4);
  ellipse(376, 440, 32, 32);
  
  color cp4_3 = get(416, 385);
  fill(cp4_3);
  ellipse(416, 385, 32, 32);
  
  color cp4_4 = get(416, 440);
  fill(cp4_4);
  ellipse(416, 440, 32, 32);
  
  color cp3_5 = get(376, 265);
  fill(cp3_5);
  ellipse(375, 265, 32, 32);
  
  color cp3_6 = get(376, 320);
  fill(cp3_6);
  ellipse(376, 320, 32, 32);
  
  color cp4_5 = get(416, 320);
  fill(cp4_5);
  ellipse(416, 320, 32, 32);
  
  color cp4_6 = get(416, 265);
  fill(cp4_6);
  ellipse(416, 265, 32, 32);
  
  color cp3_7 = get(376, 210);
  fill(cp3_7);
  ellipse(376, 210, 32, 32);
  
  color cp3_8 = get(376, 155);
  fill(cp3_8);
  ellipse(376, 155, 32, 32);
  
  color cp4_7 = get(416, 210); 
  fill(cp4_7);
  ellipse(416, 210, 32, 32);
  
  color cp4_8 = get(416, 155);
  fill(cp4_8);
  ellipse(416, 155, 32, 32);
  
  color cp3_9 = get(376, 100);
  fill(cp3_9);
  ellipse(376, 100, 32, 32);
  
  color cp3_10 = get(376, 45);
  fill(cp3_10);
  ellipse(376, 45, 32, 32);
  
  color cp4_9 = get(416, 100);
  fill(cp4_9);
  ellipse(416, 100, 32, 32);
  
  color cp4_10 = get(416, 45);
  fill(cp4_10);
  ellipse(416, 45, 32, 32);
  
  //Columns 5&6
  color cp5_10 = get(458, 45);
  fill(cp5_10);
  ellipse(458, 45, 32, 32);
  
  color cp5_9 = get(458, 100);
  fill(cp5_9);
  ellipse(458, 100, 32, 32);
  
  color cp6_10 = get(499, 45);
  fill(cp6_10);
  ellipse(499, 45, 32, 32);
  
  color cp6_9 = get(499, 100);
  fill(cp6_9);
  ellipse(499, 100, 32, 32);
  
  color cp5_8 = get(458, 155);
  fill(cp5_8);
  ellipse(458, 155, 32, 32);
  
  color cp5_7 = get(458, 210);
  fill(cp5_7);
  ellipse(458, 210, 32, 32);
  
  color cp6_8 = get(499, 155);
  fill(cp6_8);
  ellipse(499, 155, 32, 32);
  
  color cp6_7 = get(499, 210);
  fill(cp6_7);
  ellipse(499, 210, 32, 32);
  
  color cp5_6 = get(458, 265);
  fill(cp5_6);
  ellipse(458, 265, 32, 32);
  
  color cp5_5 = get(458, 320);
  fill(cp5_5);
  ellipse(458, 320, 32, 32);
  
  color cp6_6 = get(499, 265);
  fill(cp6_6);
  ellipse(499, 265, 32, 32);
  
  color cp6_5 = get(499, 320);
  fill(cp6_5);
  ellipse(499, 320, 32, 32);
  
  color cp5_4 = get(458, 375);
  fill(cp5_4);
  ellipse(458, 375, 32, 32);
  
  color cp5_3 = get(458, 435);
  fill(cp5_3);
  ellipse(458, 435, 32, 32);
  
  color cp6_4 = get(499, 375);
  fill(cp6_4);
  ellipse(499, 375, 32, 32);
  
  color cp6_3 = get(499, 435);
  fill(cp6_3);
  ellipse(499, 435, 32, 32);
  
  color cp5_2 = get(458, 490);
  fill(cp5_2);
  ellipse(458, 490, 32, 32);
  
  color cp5_1 = get(458, 545);
  fill(cp5_1);
  ellipse(458, 545, 32, 32);
  
  color cp6_2 = get(499, 490);
  fill(cp6_2);
  ellipse(499, 490, 32, 32);
  
  color cp6_1 = get(499, 545);
  fill(cp6_1);
  ellipse(499, 545, 32, 32);
  
  //Columns 7&8
  color cp7_1 = get(541, 540);
  fill(cp7_1);
  ellipse(541, 540, 32, 32);
  
  color cp7_2 = get(541, 485);
  fill(cp7_2);
  ellipse(541, 485, 32, 32);
  
  color cp8_1 = get(582, 540);
  fill(cp8_1);
  ellipse(582, 540, 32, 32);
  
  color cp8_2 = get(582, 485);
  fill(cp8_2);
  ellipse(582, 485, 32, 32);
  
  color cp7_3 = get(541, 430);
  fill(cp7_3);
  ellipse(541, 430, 32, 32);
  
  color cp7_4 = get(541, 375);
  fill(cp7_4);
  ellipse(541, 375, 32, 32);
  
  color cp8_3 = get(582, 430);
  fill(cp8_3);
  ellipse(582, 430, 32, 32);
  
  color cp8_4 = get(582, 375);
  fill(cp8_4);
  ellipse(582, 375, 32, 32);
  
  color cp7_5 = get(541, 320);
  fill(cp7_5);
  ellipse(541, 320, 32, 32);
  
  color cp7_6 = get(541, 265);
  fill(cp7_6);
  ellipse(541, 265, 32, 32);
  
  color cp8_5 = get(582, 320);
  fill(cp8_5);
  ellipse(582, 320, 32, 32);
  
  color cp8_6 = get(582, 265);
  fill(cp8_6);
  ellipse(582, 265, 32, 32);
  
  color cp7_7 = get(541, 205);
  fill(cp7_7);
  ellipse(541, 205, 32, 32);
  
  color cp7_8 = get(541, 150);
  fill(cp7_8);
  ellipse(541, 150, 32, 32);
  
  color cp8_7 = get(582, 205);
  fill(cp8_7);
  ellipse(582, 205, 32, 32);
  
  color cp8_8 = get(582, 150);
  fill(cp8_8);
  ellipse(582, 150, 32, 32);
  
  color cp7_9 = get(541, 95);
  fill(cp7_9);
  ellipse(541, 95, 32, 32);
  
  color cp7_10 = get(541, 35);
  fill(cp7_10);
  ellipse(541, 35, 32, 32);
  
  color cp8_9 = get(582, 95);
  fill(cp8_9);
  ellipse(582, 95, 32, 32);
  
  color cp8_10 = get(582, 35);
  fill(cp8_10);
  ellipse(582, 35, 32, 32);
  
  //Columns 9&10
  color cp9_10 = get(623, 35);
  fill(cp9_10);
  ellipse(623, 35, 32, 32);
  
  color cp9_9 = get(623, 95);
  fill(cp9_9);
  ellipse(623, 95, 32, 32);
  
  color cp10_10 = get(663, 35);
  fill(cp10_10);
  ellipse(663, 35, 32, 32);
  
  color cp10_9 = get(663, 95);
  fill(cp10_9);
  ellipse(663, 95, 32, 32);
  
  color cp9_8 = get(623, 150);
  fill(cp9_8);
  ellipse(623, 150, 32, 32);
  
  color cp9_7 = get(623, 205);
  fill(cp9_7);
  ellipse(623, 205, 32, 32);
    
  color cp10_8 = get(663, 150);
  fill(cp10_8);
  ellipse(663, 150, 32, 32);
  
  color cp10_7 = get(663, 205);
  fill(cp10_7);
  ellipse(663, 205, 32,32);
  
  color cp9_6 = get(623, 260);
  fill(cp9_6);
  ellipse(623, 260, 32, 32);
  
  color cp9_5 = get(623, 320);
  fill(cp9_5);
  ellipse(623, 320, 32, 32);
  
  color cp10_6 = get(663, 260);
  fill(cp10_6);
  ellipse(663, 260, 32, 32);
  
  color cp10_5 = get(663, 320);
  fill(cp10_5);
  ellipse(663, 320, 32, 32);
  
  color cp9_4 = get(623, 375);
  fill(cp9_4);
  ellipse(623, 375, 32, 32);
  
  color cp9_3 = get(623, 430);
  fill(cp9_3);
  ellipse(623, 430, 32, 32);
  
  color cp10_4 = get(663, 375);
  fill(cp10_4);
  ellipse(663, 375, 32, 32);
  
  color cp10_3 = get(663, 430);
  fill(cp10_3);
  ellipse(663, 430, 32, 32);
  
  color cp9_2 = get(623, 485);
  fill(cp9_2);
  ellipse(623, 485, 32, 32);
  
  color cp9_1 = get(623, 540);
  fill(cp9_1);
  ellipse(623, 540, 32, 32);
  
  color cp10_2 = get(663, 485);
  fill(cp10_2);
  ellipse(663, 485, 32, 32);
  
  color cp10_1 = get(663, 540);
  fill(cp10_1);
  ellipse(663, 540, 32, 32);
  
  //Collumns 11&12
  color cp11_1 = get(705, 540);
  fill(cp11_1);
  ellipse(705, 540, 32, 32);
  
  color cp11_2 = get(705, 485);
  fill(cp11_2);
  ellipse(705, 485, 32, 32);
  
  color cp12_1 = get(746, 540);
  fill(cp12_1);
  ellipse(746, 540, 32, 32);
  
  color cp12_2 = get(746, 485);
  fill(cp12_2);
  ellipse(746, 485, 32, 32);
  
  color cp11_3 = get(705, 430);
  fill(cp11_3);
  ellipse(705, 430, 32, 32);
  
  color cp11_4 = get(705, 375);
  fill(cp11_4);
  ellipse(705, 375, 32, 32);
  
  color cp12_3 = get(746, 430);
  fill(cp12_3);
  ellipse(746, 430, 32, 32);
  
  color cp12_4 = get(746, 375);
  fill(cp12_4);
  ellipse(746, 375, 32, 32);
  
  color cp11_5 = get(705, 325);
  fill(cp11_5);
  ellipse(705, 325, 32, 32);
  
  color cp11_6 = get(705, 270);
  fill(cp11_6);
  ellipse(705, 270, 32, 32);
  
  color cp12_5 = get(746, 325);
  fill(cp12_5);
  ellipse(746, 325, 32, 32);
  
  color cp12_6 = get(746, 270);
  fill(cp12_6);
  ellipse(746, 270, 32, 32);
  
  color cp11_7 = get(705, 210);
  fill(cp11_7);
  ellipse(705, 210, 32, 32);
  
  color cp11_8 = get(705, 155);
  fill(cp11_8);
  ellipse(705, 155, 32, 32);
  
  color cp12_7 = get(746, 210);
  fill(cp12_7);
  ellipse(746, 210, 32, 32);
  
  color cp12_8 = get(746, 155);
  fill(cp12_8);
  ellipse(746, 155, 32, 32);
  
  color cp11_9 = get(705, 100);
  fill(cp11_9);
  ellipse(705, 100, 32, 32);
  
  color cp11_10 = get(705, 45);
  fill(cp11_10);
  ellipse(705, 45, 32, 32);
  
  color cp12_9 = get(746, 100);
  fill(cp12_9);
  ellipse(746, 100, 32, 32);
  
  color cp12_10 = get(746, 45);
  fill(cp12_10);
  ellipse(746, 45, 32, 32);
  
  //Columns 13&14
  color cp13_10 = get(787, 45);
  fill(cp13_10);
  ellipse(787, 45, 32, 32);
  
  color cp13_9 = get(787, 100);
  fill(cp13_9);
  ellipse(787, 100, 32, 32);
  
  color cp14_10 = get(828, 45);
  fill(cp14_10);
  ellipse(828, 45, 32, 32);
  
  color cp14_9 = get(828, 100);
  fill(cp14_9);
  ellipse(828, 100, 32, 32);
  
  color cp13_8 = get(787, 155);
  fill(cp13_8);
  ellipse(787, 155, 32, 32);
  
  color cp13_7 = get(787, 210);
  fill(cp13_7);
  ellipse(787, 210, 32, 32);
  
  color cp14_8 = get(828, 155);
  fill(cp14_8);
  ellipse(828, 155, 32, 32);
  
  color cp14_7 = get(828, 210);
  fill(cp14_7);
  ellipse(828, 210, 32, 32);
  
  color cp13_6 = get(787, 270);
  fill(cp13_6);
  ellipse(787, 270, 32, 32);
  
  color cp13_5 = get(787, 325);
  fill(cp13_5);
  ellipse(787, 325, 32, 32);
  
  color cp14_6 = get(828, 270);
  fill(cp14_6);
  ellipse(828, 270, 32, 32);
  
  color cp14_5 = get(828, 325);
  fill(cp14_5);
  ellipse(828, 325, 32, 32);
  
  color cp13_4 = get(787, 380);
  fill(cp13_4);
  ellipse(787, 380, 32, 32);
  
  color cp13_3 = get(787, 435);
  fill(cp13_3);
  ellipse(787, 435, 32, 32);
  
  color cp14_4 = get(828, 380);
  fill(cp14_4);
  ellipse(828, 380, 32, 32);
  
  color cp14_3 = get(828, 435);
  fill(cp14_3);
  ellipse(828, 435, 32, 32);
  
  color cp13_2 = get(787, 495);
  fill(cp13_2);
  ellipse(787, 495, 32, 32);
  
  color cp13_1 = get(787, 550);
  fill(cp13_1);
  ellipse(787, 550, 32, 32);
  
  color cp14_2 = get(828, 495);
  fill(cp14_2);
  ellipse(828, 495, 32, 32);
  
  color cp14_1 = get(828, 550);
  fill(cp14_1);
  ellipse(828, 550, 32, 32);
  
  color cp15_1 = get(870, 550);
  fill(cp15_1);
  ellipse(870, 550, 32, 32);
  
  color cp15_2 = get(870, 495);
  fill(cp15_2);
  ellipse(870, 495, 32, 32);
  
  color cp15_3 = get(870, 440);
  fill(cp15_3);
  ellipse(870, 440, 32, 32);
  
  color cp15_4 = get(870, 385);
  fill(cp15_4);
  ellipse(870, 385, 32, 32);
  
  color cp15_5 = get(870, 330);
  fill(cp15_5);
  ellipse(870, 330, 32, 32);
  
  color cp15_6 = get(870, 275);
  fill(cp15_6);
  ellipse(870, 275, 32, 32);
  
  color cp15_7 = get(870, 220);
  fill(cp15_7);
  ellipse(870, 220, 32, 32);
  
  color cp15_8 = get(870, 160);
  fill(cp15_8);
  ellipse(870, 160, 32, 32);
  
  color cp15_9 = get(870, 105);
  fill(cp15_9);
  ellipse(870, 105, 32, 32);
  
  color cp15_10 = get(870, 50);
  fill(cp15_10);
  ellipse(870, 50, 32, 32);
}