#include <iostream>
#include <string>
usingnamespace std;
#include <painting.h>
int main()
{
painting colorSwatch("A Swatch", 1, 1);
int redLevel = 85;
int greenLevel = 168;
int blueLevel = 255;
//
// Display redLevel, greenLevel, and blueLevel on the screen
//
cout
<< "Color levels: red = " << redLevel
<< ", green = " << greenLevel
<< ", blue = " << blueLevel
<< endl;
//
// Set the color of the swatch
//
colorSwatch.getDot(0, 0).setRedLevel(redLevel);
colorSwatch.getDot(0, 0).setGreenLevel(greenLevel);
colorSwatch.getDot(0, 0).setBlueLevel(blueLevel);
//
// Show the swatch
//
colorSwatch.reveal();
//
// Pause so that the user can examine the swatch
//
string inputToBeIgnored;
cout << "Enter any string to continue ...";
cin >> inputToBeIgnored;
//
// Hide the swatch
//
colorSwatch.conceal();
return 0;
}