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 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. | |
| */ | |
| #include <X11/Xlib.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
| /* | |
| A simple example of using the gfx library. | |
| CSE 20211 | |
| 9/7/2011 | |
| by Prof. Thain | |
| */ | |
| #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
| /* | |
| 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. | |
| */ |
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
| /* | |
| 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.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-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
| /* | |
| 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-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
| #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) | |
| { |
OlderNewer