This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
haas:spring2016:cprog:projects:cos0 [2016/03/07 17:29] – [getting started] wedge | haas:spring2016:cprog:projects:cos0 [2016/03/07 17:30] (current) – [Program] wedge | ||
---|---|---|---|
Line 40: | Line 40: | ||
* *(argv+4): center x of circle (a value of 0 should result in auto-centering of x with respect to width) | * *(argv+4): center x of circle (a value of 0 should result in auto-centering of x with respect to width) | ||
* *(argv+5): center y of circle (a value of 0 should result in auto-centering of y with respect to height) | * *(argv+5): center y of circle (a value of 0 should result in auto-centering of y with respect to height) | ||
+ | * *(argv+6), if present, will be the name of the output image file produced. If it is absent, assume the default name **cos0.png**. | ||
* image width, height is at least 800x600 (can be larger, but not huge, don't go beyond 1280x1024)-- and specified on the command-line when running the program | * image width, height is at least 800x600 (can be larger, but not huge, don't go beyond 1280x1024)-- and specified on the command-line when running the program | ||
* if the information isn't supplied, display an error and exit with non-zero status | * if the information isn't supplied, display an error and exit with non-zero status |