void loop() { lBreak(); sM(); sE(); sR(); sR(); sY(); wBreak(); sC(); sH(); sR(); sI(); sS(); sT(); sM(); sA(); sS(); lBreak(); }
ColumnBundle operator*(const ColumnBundle &Y, complex s) { ColumnBundle sY(Y); sY *= s; return sY; }
void GameLoop::DrawGraph() //This function will draw a graph //made by me (Brock Barlow) { pX = 0; //variable pX equals zero. This variable will be sent to the x squared function //made by me (Brock Barlow) sX(pX); if (pX == 0) //if pX is equal to zero, a green circle will be drawn on the graph (0,0) //made by me (Brock Barlow) { Graphics::DrawCircle({ 500, 700 }, 10, 50, { 0, 255, 0, 255 }); } pX2 = 1; //variable pX2 equals zero. This variable will be sent to the x squared function //made by me (Brock Barlow) sX(pX2); if (pX2 = 1) //if pX2 is equal to one, a green circle will be drawn on the graph (1,0) //made by me (Brock Barlow) { Graphics::DrawCircle({ 550, 700 }, 10, 50, { 0, 255, 0, 255 }); } pX3 = 2; //variable pX3 equals zero. This variable will be sent to the x squared function //made by me (Brock Barlow) sX(pX3); if (pX3 = 4) //if pX3 is equal to four, a green circle will be drawn on the graph (4,0) //made by me (Brock Barlow) { Graphics::DrawCircle({ 700, 700 }, 10, 50, { 0, 255, 0, 255 }); } pX4 = 3; //variable pX4 equals zero. This variable will be sent to the x squared function //made by me (Brock Barlow) sX(pX4); if (pX4 = 9) //if pX4 is equal to nine, a green circle will be drawn on the graph (9,0) //made by me (Brock Barlow) { Graphics::DrawCircle({ 950, 700 }, 10, 50, { 0, 255, 0, 255 }); } pY = 0; //variable pY equals zero. This variable will be sent to the y squared function //made by me (Brock Barlow) sY(pY); if (pY == 0) //if pY is equal to zero, a yellow circle will be drawn on the graph (0,0) //made by me (Brock Barlow) { Graphics::DrawCircle({ 500, 700 }, 10, 50, { 255, 255, 0, 255 }); } pY2 = 1; //variable pY2 equals zero. This variable will be sent to the y squared function //made by me (Brock Barlow) sY(pY2); if (pY2 = 1) //if pY2 is equal to one, a yellow circle will be drawn on the graph (0,1) //made by me (Brock Barlow) { Graphics::DrawCircle({ 500, 650 }, 10, 50, { 255, 255, 0, 255 }); } pY3 = 2; //variable pY3 equals zero. This variable will be sent to the y squared function //made by me (Brock Barlow) sY(pY3); if (pY3 = 4) //if pY3 is equal to four, a yellow circle will be drawn on the graph (0,4) //made by me (Brock Barlow) { Graphics::DrawCircle({ 500, 500 }, 10, 50, { 255, 255, 0, 255 }); } pY4 = 3; //variable pY4 equals zero. This variable will be sent to the y squared function //made by me (Brock Barlow) sY(pY4); if (pY4 = 9) //if pY4 is equal to nine, a yellow circle will be drawn on the graph (0,9) //made by me (Brock Barlow) { Graphics::DrawCircle({ 500, 250 }, 10, 50, { 255, 255, 0, 255 }); } Graphics::DrawLine({ 500, 700 }, { 1000, 700 }, { 255, 255, 255, 255 }); //custom line object made by me (Brock Barlow) Graphics::DrawLine({ 500, 700 }, { 500, 200 }, { 255, 255, 255, 255 }); //second custom line object made by me (Brock Barlow) //this will draw the red x part of the graph //made by Brock Barlow float x = 500; for (int i = 0; i < 11; i++) { Graphics::DrawLine({ x, 700 }, { x, 200 }, { 255, 0, 0, 255 }); x += 50; } //this will draw the red y part of the graph //made by Brock Barlow float y = 700; for (int i = 0; i < 11; i++) { Graphics::DrawLine({ 500, y }, { 1000, y }, { 255, 0, 0, 255 }); y -= 50; } }