// Copyright 1999
// College of Computer Science
// Northeastern University Boston MA 02115

// This software may be used for educational purposes as long as this copyright
// notice is retained at the top of all files

// Should this software be modified, the words "Modified from Original" must be
// included as a comment below this notice

// All publication rights are retained.  This software or its documentation may
// not be published in any media either in whole or in part.

///////////////////////////////////////////////////////////////////////////////

// Picture Lab
//
// Paint a picture at a given location that scales to a given (square) size
//
// Name: ***************
// ID: *****************

///////////////////////////////////////////////////////////////////////////////

// The standard include files that include traditional C and C++ headers and
// many other Core Tools headers ... see CHeaders.h for additional details

#include "IOTools.h"
#include "Graphics.h"
#include "Random.h"

// Enter project specific include files here as well as classes and functions
// that you choose to define in the main shell rather than in separate files

// prototype
void Picture(int h, int v, int size);

// function definition
void Picture(int h, int v, int size){
	// Paint a square picture of a given size
	// with the top left corner at coordinates (h, v)

	// SAMPLE CODE
	SetForeColor(255, 0, 0);						// red background
	PaintRect(h, v, h + size, v + size);			// fill the whole area

	SetForeColor(0, 255, 0);						// set color to green
	PaintCircle(h + size/4, v + size/2, size/5);	// add a small circle

	// DELETE THE CODE ABOVE AND ENTER YOUR CODE FOR PAINTING THE PICTURE
	// SELECT COLORS, PAINT BACKGROUND, AND HAVE FUN

};

int main(int argc, char* argv[]) {

	// Build graphics window 0
	GraphicsWindow GW0(300, 300);

	// Move the console below graphics window 0
	ConsolePlaceBelow(0);

	// Give the console the focus for user interaction
	MakeConsoleForeground();

//////////

	// Enter the main program here

	PressReturn("First picture at (0, 0) of size 50:");
	Picture(0, 0, 50);

	PressReturn("Second picture at (100, 200) of size 100:");
	Picture(100, 200, 100);

//////////

	// The lines below make sure that the graphics windows remain open just
	// before the program terminates

	PressReturn("\nThe main program is about to terminate\n");

	return 0;
}
