/***********************************
 * Thomas Randall
 * Assignment 3
 * CPSC 101 Section 001
 * DUE: November 6, 2015 at midnight
 **********************************/

#include "functions.h"

int main()
{	
	bool madePicture = 0;
	struct size header;
	char choiceChar; //YOU NEED TO REPLACE THIS WITH BELOW EVENTUALLY!!!
	//char choiceString[8]; //YOU NEED TO USE THIS INSTEAD EVENTUALLY!!!
	
	while(madePicture != 1)
	{
		fprintf(stderr, "Choose a type of picture to print.\nType your choice exactly as it is displayed excluding quotation marks:\nType 'c' for circle\nType 'd' for diagonal\nType 'g' for gradient\n");
		fscanf(stdin, " %c", &choiceChar);
		
		switch(choiceChar)
		{
			case 'c': //NEED TO FIX ERRORS WITH READING THE STRUCT PARTS!!!
				header.width = 600;
				header.height = 400;
				circle(header);
				madePicture = 1;
				break;
			case 'd':
				header.width = 400;
				header.height = 400;
				diagonal(header);
				madePicture = 1;
				break;
			case 'g':
				header.width = 500;
				header.height = 500;
				gradient(header);
				madePicture = 1;
				break;
			default:
				fprintf(stderr, "ERROR! You did not enter a valid choice. Please try again!\n");
				madePicture = 0;
		} //terminates switch
	} //terminates while
	
	return 0;
}