+PImage Img1 = loadImage("http://www.zentut.com/…/upl…/2007/12/c-if-else-statement.png", "png");
+PImage Img2 = loadImage("http://www.functionx.com/cpp/images/flowchart11.gif", "gif");
+text("Flowchart", 400, 80);
+text("If-else", 210, 160);
+// ButtonChangePage(820, 600, "Press Key 3");
+text("Explanation of ' Loop ' working methods", 260, 80);
+rect(310, 150, 280, 60);
+ellipse(x_roll+g_roll, y_fall, 50, 50);
+if (keyCode==DOWN&&(x_roll>350)&&(x_roll<550)) {
+text("Out of Loop!", 300, 450);
+text("False", 230, 180);
+text("Suppose the White box is a loop condition", 250, 280);
+text("and pink ball is work in a true statements", 255, 320);
+text("Press 'Down key' to make 'false' statements", 250, 400);
+line(450, 430, 450, 510);
+line(440, 500, 450, 520);
+line(450, 520, 460, 500);
+text("Explanation of ' if-else ' working methods", 250, 80);
+// line(250, 130, 250, height-20); //if
+// line(350, 130, 350, height-20);
+// line(550, 130, 550, height-20); //else
+// line(650, 130, 650, height-20);
+quad(350, 170, 450, 120, 550, 170, 450, 240); //condition
+line(170, 170, 400, 170); //left
+line(170, 170, 170, 250);
+line(160, 240, 170, 250);
+line(180, 240, 170, 250);
+line(170, 300, 170, 530);
+rect(50, 260, 210, 100);
+line (500, 170, 730, 170); //right
+line(730, 170, 730, 360);
+line(720, 350, 730, 360);
+line(740, 350, 730, 360);
+line(740, 380, 740, 530);
+rect(630, 370, 210, 100);
+line(170, 530, 740, 530);
+line(450, 530, 450, 600);
+ellipse(450, 620, 100, 50);
+ellipse(x_pos_ball, y_pos_ball, 50, 50);
+text("The true statements", 60, 330);
+text("The false statements", 640, 450);
+text("CONDITION", 395, 175);
+text("When it false", 390, 380);
+line(390, 420, 480, 420);
+line(480, 410, 500, 420);
+line(500, 420, 480, 430);
+} else if (y_pos_ball>350&&y_pos_ball<850) {
- background (255, 153, 153);
- for (int x = 0; x<width; x=x+260) {
- rect (x, 0, 130, height);
- text ("FUNCTION", (width/2)-110, 70);
+background (255, 153, 153);
+for (int x = 0; x<width; x=x+260) {
+rect (x, 0, 130, height);
+text ("FUNCTION", (width/2)-110, 70);
- background (255, 255, 0);
- ellipse (width/2, height/2, 950, 750);
+background (255, 255, 0);
+ellipse (width/2, height/2, 950, 750);
- text ("FUNCTION", (width/2)-110, 70);
+text ("FUNCTION", (width/2)-110, 70);
- background (255, 51, 102);
- ellipse (width/2, height/2, 950, 750);
+background (255, 51, 102);
+ellipse (width/2, height/2, 950, 750);
- text ("FUNCTION", (width/2)-110, 70);
+text ("FUNCTION", (width/2)-110, 70);
void Function_System (int y2) {
- text ("System Function", (width/2)-110, 120);
- text ("The system functions are already available to run it.", 150, 150);
+text ("System Function", (width/2)-110, 120);
+text ("The system functions are already available to run it.", 150, 150);
- rect (100, y2, 200, 100, 10);
- rect (100, y2+200, 200, 100, 10);
- rect (630, y2, 200, 50, 20);
- rect (630, y2+200, 200, 50, 20);
- rect (650, y2+70, 150, 50, 20);
- rect (650, y2+270, 150, 50, 20);
+rect (100, y2, 200, 100, 10);
+rect (100, y2+200, 200, 100, 10);
+rect (630, y2, 200, 50, 20);
+rect (630, y2+200, 200, 50, 20);
+rect (650, y2+70, 150, 50, 20);
+rect (650, y2+270, 150, 50, 20);
- text ("WITH", 170, y2+40);
- text ("PARAMETER", 130, y2+70);
- text ("WITHOUT", 150, y2+240);
- text ("PARAMETER", 130, y2+270);
+text ("WITH", 170, y2+40);
+text ("PARAMETER", 130, y2+70);
+text ("WITHOUT", 150, y2+240);
+text ("PARAMETER", 130, y2+270);
- text ("View Source Code", 640, y2+30);
- text ("View Source Code", 640, y2+230);
- text ("Code Sample", 660, y2+100);
- text ("Code Sample", 660, y2+300);
+text ("View Source Code", 640, y2+30);
+text ("View Source Code", 640, y2+230);
+text ("Code Sample", 660, y2+100);
+text ("Code Sample", 660, y2+300);
- text ("Mouse over to read the description", (width/2)-150, y2+445);
- text ("Click mouse left to go to next page", (width/2)-150, y2+470);
+text ("Mouse over to read the description", (width/2)-150, y2+445);
+text ("Click mouse left to go to next page", (width/2)-150, y2+470);
ไม่มีความคิดเห็น:
แสดงความคิดเห็น