วันพุธที่ 17 ธันวาคม พ.ศ. 2557

ส่วนที่แก้ไขต่างๆจาก bitbucket (5)

void Function_UserDefinde (int y3) {
-  fill (102, 0, 153);
-  textSize(30);
-  text ("User Definde Function", (width/2)-160, 120);
-  textSize (25);
-  text ("The functions that user declare, defined, run by yourselft.", 100, 150);
+fill (102, 0, 153);
+textSize(30);
+text ("User Definde Function", (width/2)-160, 120);
+textSize (25);
+text ("The functions that user declare, defined, run by yourselft.", 100, 150);
 
-  fill (255, 153, 153);
-  rect (100, y3, 200, 100, 10);
-  rect (100, y3+200, 200, 100, 10);
-  fill (153, 255, 0);
-  rect (630, y3, 200, 50, 20);
-  rect (630, y3+200, 200, 50, 20);
-  fill (102, 255, 255);
-  rect (650, y3+70, 150, 50, 20);
-  rect (650, y3+270, 150, 50, 20);
+fill (255, 153, 153);
+rect (100, y3, 200, 100, 10);
+rect (100, y3+200, 200, 100, 10);
+fill (153, 255, 0);
+rect (630, y3, 200, 50, 20);
+rect (630, y3+200, 200, 50, 20);
+fill (102, 255, 255);
+rect (650, y3+70, 150, 50, 20);
+rect (650, y3+270, 150, 50, 20);
 
-  fill (102, 0, 51);
-  textSize (25);
-  text ("WITH", 170, y3+40);
-  text ("PARAMETER", 130, y3+70);
-  text ("WITHOUT", 150, y3+240);
-  text ("PARAMETER", 130, y3+270);
+fill (102, 0, 51);
+textSize (25);
+text ("WITH", 170, y3+40);
+text ("PARAMETER", 130, y3+70);
+text ("WITHOUT", 150, y3+240);
+text ("PARAMETER", 130, y3+270);
 
-  fill (0);
-  textSize(20);
-  text ("View Source Code", 640, y3+30);
-  text ("View Source Code", 640, y3+230);
-  text ("Code Sample", 660, y3+100);
-  text ("Code Sample", 660, y3+300);
+fill (0);
+textSize(20);
+text ("View Source Code", 640, y3+30);
+text ("View Source Code", 640, y3+230);
+text ("Code Sample", 660, y3+100);
+text ("Code Sample", 660, y3+300);
 
-  fill (0);
-  textSize (20);
-  text ("Mouse over to read the description", (width/2)-150, y3+445);
-  text ("Click mouse left to go to next page", (width/2)-150, y3+470);
+fill (0);
+textSize (20);
+text ("Mouse over to read the description", (width/2)-150, y3+445);
+text ("Click mouse left to go to next page", (width/2)-150, y3+470);
 }
 
+
 void Function_2_sample_withOutParameter () {
-  fill (255, 0, 0);
-  rect (430, 400, 100, 100);
-  noStroke();
-  if (mouseX>=405&&mouseX<=550
-    &&mouseY>=385&&mouseY<=480) {
-    strokeWeight (5);
-    stroke (0);
-    line (480, 400, 480, 500);
-  }
+fill (255, 0, 0);
+rect (430, 400, 100, 100);
+noStroke();
+if (mouseX>=405&&mouseX<=550
+&&mouseY>=385&&mouseY<=480) {
+strokeWeight (5);
+stroke (0);
+line (480, 400, 480, 500);
+}
 }
 
 void Function_2_sample_withParameter () {
-  fill (255, 0, 0);
-  ellipse (480, 260, 100, 100);
-  if (mouseX>=405&&mouseX<=550&&mouseY>=185&&mouseY<=280) {
-    fill (0, 0, 255);
-    ellipse (480, 260, 150, 150);
-  }
+fill (255, 0, 0);
+ellipse (480, 260, 100, 100);
+if (mouseX>=405&&mouseX<=550&&mouseY>=185&&mouseY<=280) {
+fill (0, 0, 255);
+ellipse (480, 260, 150, 150);
+}
 }
 
 void Function_3_sample_withOutParameter () {
-  for (int x = 0; x<75; x=x+15) {
-    stroke(0);
-    line (450+x, 400, 450+x, 500);
-  }
+for (int x = 0; x<75; x=x+15) {
+stroke(0);
+line (450+x, 400, 450+x, 500);
+}
 }
 
 void Function_3_sample_withParameter (int a, int b) {
-  line (b-50, a, b+50, a);
-  line (b-50, a+20, b+50, a+20);
-  line (b-50, a+40, b+50, a+40);
+line (b-50, a, b+50, a);
+line (b-50, a+20, b+50, a+20);
+line (b-50, a+40, b+50, a+40);
 }
 
 void Function_2_codeSample_withOutParameter (int y2) {
-  if (mouseX >=670 && mouseX<=785 && mouseY >=y2+285 && mouseY <=y2+315) {
-    fill (102, 255, 255);
-    rect (630, y2+270, 200, 100, 20);
-    fill (0);
-    textSize(15);
-    text ("noFill ();", 650, y2+295);
-    text ("//No fill color to shape", 650, y2+315);
-    text ("noStroke ();", 650, y2+335);
-    text ("//No fill color to line", 650, y2+355);
-  }
+if (mouseX >=670 && mouseX<=785 && mouseY >=y2+285 && mouseY <=y2+315) {
+fill (102, 255, 255);
+rect (630, y2+270, 200, 100, 20);
+fill (0);
+textSize(15);
+text ("noFill ();", 650, y2+295);
+text ("//No fill color to shape", 650, y2+315);
+text ("noStroke ();", 650, y2+335);
+text ("//No fill color to line", 650, y2+355);
+}
 }
 
 void Function_2_codeSample_withParameter (int y2) {
-  if (mouseX >=670 && mouseX<=785 && mouseY >=y2+85 && mouseY <=y2+115) {
-    fill (102, 255, 255);
-    rect (630, y2+70, 200, 100, 20);
-    fill (0);
-    textSize(15);
-    text ("fill (Red, Green, Blue);", 640, y2+95);
-    text ("//Fill color to shape", 640, y2+115);
-    text ("ellipse (x, y, width, hight);", 640, y2+135);
-    text ("//create ellipse", 640, y2+155);
-  }
+if (mouseX >=670 && mouseX<=785 && mouseY >=y2+85 && mouseY <=y2+115) {
+fill (102, 255, 255);
+rect (630, y2+70, 200, 100, 20);
+fill (0);
+textSize(15);
+text ("fill (Red, Green, Blue);", 640, y2+95);
+text ("//Fill color to shape", 640, y2+115);
+text ("ellipse (x, y, width, hight);", 640, y2+135);
+text ("//create ellipse", 640, y2+155);
+}
 }
 
 void Function_3_codeSample_withParameter (int y3) {
-  if (mouseX >=670 && mouseX<=785 && mouseY >=y3+85 && mouseY <=y3+115) {
-    fill (102, 255, 255);
-    rect (630, y3+70, 200, 100, 20);
-    fill (0);
-    textSize(15);
-    text ("Calculate (a, b);", 640, y3+95);
-    text ("//function that create", 640, y3+115);
-    text ("by yourselft for", 640, y3+135);
-    text ("Calculate value a, b", 640, y3+155);
-  }
+if (mouseX >=670 && mouseX<=785 && mouseY >=y3+85 && mouseY <=y3+115) {
+fill (102, 255, 255);
+rect (630, y3+70, 200, 100, 20);
+fill (0);
+textSize(15);
+text ("Calculate (a, b);", 640, y3+95);
+text ("//function that create", 640, y3+115);
+text ("by yourselft for", 640, y3+135);
+text ("Calculate value a, b", 640, y3+155);
+}
 }
 
 void Function_3_codeSample_withOutParameter (int y3) {
-  if (mouseX >=670 && mouseX<=785 && mouseY >=y3+285 && mouseY <=y3+315) {
-    fill (102, 255, 255);
-    rect (630, y3+270, 200, 100, 20);
-    fill (0);
-    textSize(15);
-    text ("draw_grid ();", 650, y3+295);
-    text ("//function that create", 650, y3+315);
-    text ("by yourselft for", 650, y3+335);
-    text ("Draw grid", 650, y3+355);
-  }
+if (mouseX >=670 && mouseX<=785 && mouseY >=y3+285 && mouseY <=y3+315) {
+fill (102, 255, 255);
+rect (630, y3+270, 200, 100, 20);
+fill (0);
+textSize(15);
+text ("draw_grid ();", 650, y3+295);
+text ("//function that create", 650, y3+315);
+text ("by yourselft for", 650, y3+335);
+text ("Draw grid", 650, y3+355);
+}
 }
 
 void Function_2_viewSource_withOutParameter (int y2) {
-  if (mouseX >=645 && mouseX<=800 && mouseY >=y2+210 && mouseY <=y2+240) {
-    fill (153, 255, 0);
-    rect (610, y2+200, 250, 200, 20);
-    fill (0);
-    textSize(15);
-    text ("fill (255, 0, 0);", 625, y2+220);
-    text ("rect (430, 400, 100, 100);", 625, y2+240);
-    text (" noStroke();", 625, y2+260);
-    text ("if(mouseX>=405&&mouseX", 625, y2+280);
-    text ("<=550&&mouseY>=385", 625, y2+300);
-    text ("&&mouseY<=480){", 625, y2+320);
-    text ("strokeWeight (5);", 625, y2+340);
-    text (" stroke (0);", 625, y2+360);
-    text ("line (480, 400, 480, 500);}", 625, y2+380);
-  }
+if (mouseX >=645 && mouseX<=800 && mouseY >=y2+210 && mouseY <=y2+240) {
+fill (153, 255, 0);
+rect (610, y2+200, 250, 200, 20);
+fill (0);
+textSize(15);
+text ("fill (255, 0, 0);", 625, y2+220);
+text ("rect (430, 400, 100, 100);", 625, y2+240);
+text (" noStroke();", 625, y2+260);
+text ("if(mouseX>=405&&mouseX", 625, y2+280);
+text ("<=550&&mouseY>=385", 625, y2+300);
+text ("&&mouseY<=480){", 625, y2+320);
+text ("strokeWeight (5);", 625, y2+340);
+text (" stroke (0);", 625, y2+360);
+text ("line (480, 400, 480, 500);}", 625, y2+380);
+}
 }
+

ไม่มีความคิดเห็น:

แสดงความคิดเห็น