This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # include <stdio.h> | |
| //# include "gfx2.h" | |
| //# include "myGfxShapesLib.h" | |
| // argc: a count of how many command line arguments were given | |
| // when the program was invoked. This includes the command name itself | |
| // argv: a one-dimensional array of strings | |
| // mean argv[someIndex] can be used anywhere you would use string | |
| // anywhere "you could put something in double-quotes" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include<stdio.h> | |
| #include<stdlib.h>//rand func | |
| #include<time.h>//seed | |
| int randNum();//declare the function | |
| int main() | |
| { | |
| //srand(time(NULL));//seed | |
| printf("%i\n", randNum()); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <time.h> | |
| int main() | |
| { | |
| time_t seconds = time(NULL);//Unix epoch 00:00:00 UTC on 1 January 1970 | |
| if (seconds == -1) | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| Isaiah Keating | |
| csc250DT2 | |
| Lab0x03-p1--polyGoneCrazy | |
| 02/14/2020 | |
| V 0.1 | |
| */ | |
| #include <stdio.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| Isaiah Keating | |
| csc250DT2 | |
| Lab0x03-p2--rollpolyBounce | |
| 02/14/2020 | |
| V 0.1 | |
| */ | |
| #include <stdio.h> | |
| #include "gfx2.h" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| Isaiah Keating | |
| csc250DT2 | |
| Lab0x03-p3--multiPolyBounce | |
| 02/14/2020 | |
| V 0.1 | |
| */ | |
| #include <stdio.h> | |
| #include "gfx2.h" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * myGfxShapesLib.h | |
| * | |
| * A libtrary of functions that draw various shapes using the gfx2 library. | |
| * | |
| * Author: Isaiah Keating | |
| * csc250DT2 | |
| * Last Modified: 03/21/2020 v0.7 | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| Isaiah Keating | |
| csc250DT2 | |
| Lab0x03-p4--animania | |
| 02/14/2020 | |
| V 0.1 | |
| */ | |
| #include <stdio.h> | |
| #include "gfx2.h" | |
| #include "myGfxShapesLib.h" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * myGfxShapesLib.c | |
| * | |
| * A library of functions that draw various shapes using the gfx2 library. | |
| * | |
| * Author: Isaiah Keating | |
| * csc250DT2/* | |
| * myGfxShapesLib.c | |
| * | |
| * A library of functions that draw various shapes using the gfx2 library. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| A simple graphics library for CSE 20211 by Douglas Thain | |
| For course assignments, you should not change this file. | |
| For complete documentation, see: | |
| https://www3.nd.edu/~dthain/courses/cse20211/fall2013/gfx/ | |
| Version 4-SG 11/29/2018 - auth. Scott Graham, DSU.EDU - added some get key/position functionality | |
| Version 3, 11/07/2012 - Now much faster at changing colors rapidly. | |
| Version 2, 9/23/2011 - Fixes a bug that could result in jerky animation. | |
| */ |