// Hex Code Finder
// Created by Daniel Strong
// Special thanks to "cecildasquid" and "Gamer Tazer"
// Feel free to edit this and redistribute this. but you Must leave the above lines there! exactly how they are!
#include <iostream>
#include <string>
#include <stdlib.h>
#include <windows.h>
using namespace std;
int main()
{
string input,output;
//Pastels -word to hex
char snow[] = "#fffafa";
char ghostwhite[] = "#f8f8ff";
char whitesmoke[] = "#f5f5f5";
char grainsboro[] = "#dcdcdc";
//Pastels - hex to word
char fffafa[] = "snow";
char f8f8ff[] = "ghost white";
char f5f5f5[] = "white smoke";
char dcdcdc[] = "grainsboro";
cout << "Type in a Color to reveal its Hexcode." << endl ;
cout << " -or- Type in a Hexcode to reveal its Color." << endl ;
cout << " -or- Type in all to view all colors indexed." << endl ;
cout << endl ;
cout << " WARNING: when you type in a color make sure it is all" << endl ;
cout << " lowercase and has no spaces if the color has a space in it" << endl ;
cout << " just combine it. i.e. - 2 words is 2words" << endl ;
cout << endl ;
cout << " WARNING: make sure when you type in a hexcode that it" << endl ;
cout << " does not have the # symbol in it i.e. - #ffffff is ffffff" << endl ;
cin >> input;
if(input == "snow")
output = snow;
else if(input == "ghostwhite")
output = ghostwhite;
else if(input == "whitesmoke")
output = whitesmoke;
else if(input == "grainsboro")
output = grainsboro;
cout << "The Hexcode for the color " << input << " is " << output << endl ;
Sleep(5000);
else if(input == "fffafa")
output = fffafa;
else if(input == "f8f8ff")
output = f8f8ff;
else if(input == "f5f5f5")
output = f5f5f5;
else if(input == "dcdcdc")
output = dcdcdc;
cout << "The color of the Hexcode #" << input << " is " << output << endl ;
Sleep(5000);
cin.get();
return 0;
}