Source Code DirectX Color Library

Hexui Undetected CSGO Cheats Sinkicheat PUBG Cheat

Amonomen

Resident A$$hole
Dank Tier Donator
May 1, 2016
22
373
1
I have a color library I use for direct X related projects, I just thought I'd share it here.
Along with posting the class here, I've also attached the header file.

To use a color:
C++:
D3DCOLOR myColor = DXColor::Cyan;
You can also use it in method calls:
C++:
MyMethodThatUsesD3DCOLOR(DXColor::Red);
The library:
C++:
#pragma once
#include <d3d9.h>
static class DXColor
{
public:
	static const D3DCOLOR Transparent = D3DCOLOR_ARGB(255, 255, 255, 255);
	static const D3DCOLOR AliceBlue = D3DCOLOR_ARGB(255, 240, 248, 255);
	static const D3DCOLOR AntiqueWhite = D3DCOLOR_ARGB(255, 250, 235, 215);
	static const D3DCOLOR Aqua = D3DCOLOR_ARGB(255, 0, 255, 255);
	static const D3DCOLOR Aquamarine = D3DCOLOR_ARGB(255, 127, 255, 212);
	static const D3DCOLOR Azure = D3DCOLOR_ARGB(255, 240, 255, 255);
	static const D3DCOLOR Beige = D3DCOLOR_ARGB(255, 245, 245, 220);
	static const D3DCOLOR Bisque = D3DCOLOR_ARGB(255, 255, 228, 196);
	static const D3DCOLOR Black = D3DCOLOR_ARGB(255, 0, 0, 0);
	static const D3DCOLOR BlanchedAlmond = D3DCOLOR_ARGB(255, 255, 235, 205);
	static const D3DCOLOR Blue = D3DCOLOR_ARGB(255, 0, 0, 255);
	static const D3DCOLOR BlueViolet = D3DCOLOR_ARGB(255, 138, 43, 226);
	static const D3DCOLOR Brown = D3DCOLOR_ARGB(255, 165, 42, 42);
	static const D3DCOLOR BurlyWood = D3DCOLOR_ARGB(255, 222, 184, 135);
	static const D3DCOLOR CadetBlue = D3DCOLOR_ARGB(255, 95, 158, 160);
	static const D3DCOLOR Chartreuse = D3DCOLOR_ARGB(255, 127, 255, 0);
	static const D3DCOLOR Chocolate = D3DCOLOR_ARGB(255, 210, 105, 30);
	static const D3DCOLOR Coral = D3DCOLOR_ARGB(255, 255, 127, 80);
	static const D3DCOLOR CornflowerBlue = D3DCOLOR_ARGB(255, 100, 149, 237);
	static const D3DCOLOR Cornsilk = D3DCOLOR_ARGB(255, 255, 248, 220);
	static const D3DCOLOR Crimson = D3DCOLOR_ARGB(255, 220, 20, 60);
	static const D3DCOLOR Cyan = D3DCOLOR_ARGB(255, 0, 255, 255);
	static const D3DCOLOR DarkBlue = D3DCOLOR_ARGB(255, 0, 0, 139);
	static const D3DCOLOR DarkCyan = D3DCOLOR_ARGB(255, 0, 139, 139);
	static const D3DCOLOR DarkGoldenrod = D3DCOLOR_ARGB(255, 184, 134, 11);
	static const D3DCOLOR DarkGray = D3DCOLOR_ARGB(255, 169, 169, 169);
	static const D3DCOLOR DarkGreen = D3DCOLOR_ARGB(255, 0, 100, 0);
	static const D3DCOLOR DarkKhaki = D3DCOLOR_ARGB(255, 189, 183, 107);
	static const D3DCOLOR DarkMagenta = D3DCOLOR_ARGB(255, 139, 0, 139);
	static const D3DCOLOR DarkOliveGreen = D3DCOLOR_ARGB(255, 85, 107, 47);
	static const D3DCOLOR DarkOrange = D3DCOLOR_ARGB(255, 255, 140, 0);
	static const D3DCOLOR DarkOrchid = D3DCOLOR_ARGB(255, 153, 50, 204);
	static const D3DCOLOR DarkRed = D3DCOLOR_ARGB(255, 139, 0, 0);
	static const D3DCOLOR DarkSalmon = D3DCOLOR_ARGB(255, 233, 150, 122);
	static const D3DCOLOR DarkSeaGreen = D3DCOLOR_ARGB(255, 143, 188, 139);
	static const D3DCOLOR DarkSlateBlue = D3DCOLOR_ARGB(255, 72, 61, 139);
	static const D3DCOLOR DarkSlateGray = D3DCOLOR_ARGB(255, 47, 79, 79);
	static const D3DCOLOR DarkTurquoise = D3DCOLOR_ARGB(255, 0, 206, 209);
	static const D3DCOLOR DarkViolet = D3DCOLOR_ARGB(255, 148, 0, 211);
	static const D3DCOLOR DeepPink = D3DCOLOR_ARGB(255, 255, 20, 147);
	static const D3DCOLOR DeepSkyBlue = D3DCOLOR_ARGB(255, 0, 191, 255);
	static const D3DCOLOR DimGray = D3DCOLOR_ARGB(255, 105, 105, 105);
	static const D3DCOLOR DodgerBlue = D3DCOLOR_ARGB(255, 30, 144, 255);
	static const D3DCOLOR Firebrick = D3DCOLOR_ARGB(255, 178, 34, 34);
	static const D3DCOLOR FloralWhite = D3DCOLOR_ARGB(255, 255, 250, 240);
	static const D3DCOLOR ForestGreen = D3DCOLOR_ARGB(255, 34, 139, 34);
	static const D3DCOLOR Fuchsia = D3DCOLOR_ARGB(255, 255, 0, 255);
	static const D3DCOLOR Gainsboro = D3DCOLOR_ARGB(255, 220, 220, 220);
	static const D3DCOLOR GhostWhite = D3DCOLOR_ARGB(255, 248, 248, 255);
	static const D3DCOLOR Gold = D3DCOLOR_ARGB(255, 255, 215, 0);
	static const D3DCOLOR Goldenrod = D3DCOLOR_ARGB(255, 218, 165, 32);
	static const D3DCOLOR Gray = D3DCOLOR_ARGB(255, 128, 128, 128);
	static const D3DCOLOR Green = D3DCOLOR_ARGB(255, 0, 128, 0);
	static const D3DCOLOR GreenYellow = D3DCOLOR_ARGB(255, 173, 255, 47);
	static const D3DCOLOR Honeydew = D3DCOLOR_ARGB(255, 240, 255, 240);
	static const D3DCOLOR HotPink = D3DCOLOR_ARGB(255, 255, 105, 180);
	static const D3DCOLOR IndianRed = D3DCOLOR_ARGB(255, 205, 92, 92);
	static const D3DCOLOR Indigo = D3DCOLOR_ARGB(255, 75, 0, 130);
	static const D3DCOLOR Ivory = D3DCOLOR_ARGB(255, 255, 255, 240);
	static const D3DCOLOR Khaki = D3DCOLOR_ARGB(255, 240, 230, 140);
	static const D3DCOLOR Lavender = D3DCOLOR_ARGB(255, 230, 230, 250);
	static const D3DCOLOR LavenderBlush = D3DCOLOR_ARGB(255, 255, 240, 245);
	static const D3DCOLOR LawnGreen = D3DCOLOR_ARGB(255, 124, 252, 0);
	static const D3DCOLOR LemonChiffon = D3DCOLOR_ARGB(255, 255, 250, 205);
	static const D3DCOLOR LightBlue = D3DCOLOR_ARGB(255, 173, 216, 230);
	static const D3DCOLOR LightCoral = D3DCOLOR_ARGB(255, 240, 128, 128);
	static const D3DCOLOR LightCyan = D3DCOLOR_ARGB(255, 224, 255, 255);
	static const D3DCOLOR LightGoldenrodYellow = D3DCOLOR_ARGB(255, 250, 250, 210);
	static const D3DCOLOR LightGreen = D3DCOLOR_ARGB(255, 144, 238, 144);
	static const D3DCOLOR LightGray = D3DCOLOR_ARGB(255, 211, 211, 211);
	static const D3DCOLOR LightPink = D3DCOLOR_ARGB(255, 255, 182, 193);
	static const D3DCOLOR LightSalmon = D3DCOLOR_ARGB(255, 255, 160, 122);
	static const D3DCOLOR LightSeaGreen = D3DCOLOR_ARGB(255, 32, 178, 170);
	static const D3DCOLOR LightSkyBlue = D3DCOLOR_ARGB(255, 135, 206, 250);
	static const D3DCOLOR LightSlateGray = D3DCOLOR_ARGB(255, 119, 136, 153);
	static const D3DCOLOR LightSteelBlue = D3DCOLOR_ARGB(255, 176, 196, 222);
	static const D3DCOLOR LightYellow = D3DCOLOR_ARGB(255, 255, 255, 224);
	static const D3DCOLOR Lime = D3DCOLOR_ARGB(255, 0, 255, 0);
	static const D3DCOLOR LimeGreen = D3DCOLOR_ARGB(255, 50, 205, 50);
	static const D3DCOLOR Linen = D3DCOLOR_ARGB(255, 250, 240, 230);
	static const D3DCOLOR Magenta = D3DCOLOR_ARGB(255, 255, 0, 255);
	static const D3DCOLOR Maroon = D3DCOLOR_ARGB(255, 128, 0, 0);
	static const D3DCOLOR MediumAquamarine = D3DCOLOR_ARGB(255, 102, 205, 170);
	static const D3DCOLOR MediumBlue = D3DCOLOR_ARGB(255, 0, 0, 205);
	static const D3DCOLOR MediumOrchid = D3DCOLOR_ARGB(255, 186, 85, 211);
	static const D3DCOLOR MediumPurple = D3DCOLOR_ARGB(255, 147, 112, 219);
	static const D3DCOLOR MediumSeaGreen = D3DCOLOR_ARGB(255, 60, 179, 113);
	static const D3DCOLOR MediumSlateBlue = D3DCOLOR_ARGB(255, 123, 104, 238);
	static const D3DCOLOR MediumSpringGreen = D3DCOLOR_ARGB(255, 0, 250, 154);
	static const D3DCOLOR MediumTurquoise = D3DCOLOR_ARGB(255, 72, 209, 204);
	static const D3DCOLOR MediumVioletRed = D3DCOLOR_ARGB(255, 199, 21, 133);
	static const D3DCOLOR MidnightBlue = D3DCOLOR_ARGB(255, 25, 25, 112);
	static const D3DCOLOR MintCream = D3DCOLOR_ARGB(255, 245, 255, 250);
	static const D3DCOLOR MistyRose = D3DCOLOR_ARGB(255, 255, 228, 225);
	static const D3DCOLOR Moccasin = D3DCOLOR_ARGB(255, 255, 228, 181);
	static const D3DCOLOR NavajoWhite = D3DCOLOR_ARGB(255, 255, 222, 173);
	static const D3DCOLOR Navy = D3DCOLOR_ARGB(255, 0, 0, 128);
	static const D3DCOLOR OldLace = D3DCOLOR_ARGB(255, 253, 245, 230);
	static const D3DCOLOR Olive = D3DCOLOR_ARGB(255, 128, 128, 0);
	static const D3DCOLOR OliveDrab = D3DCOLOR_ARGB(255, 107, 142, 35);
	static const D3DCOLOR Orange = D3DCOLOR_ARGB(255, 255, 165, 0);
	static const D3DCOLOR OrangeRed = D3DCOLOR_ARGB(255, 255, 69, 0);
	static const D3DCOLOR Orchid = D3DCOLOR_ARGB(255, 218, 112, 214);
	static const D3DCOLOR PaleGoldenrod = D3DCOLOR_ARGB(255, 238, 232, 170);
	static const D3DCOLOR PaleGreen = D3DCOLOR_ARGB(255, 152, 251, 152);
	static const D3DCOLOR PaleTurquoise = D3DCOLOR_ARGB(255, 175, 238, 238);
	static const D3DCOLOR PaleVioletRed = D3DCOLOR_ARGB(255, 219, 112, 147);
	static const D3DCOLOR PapayaWhip = D3DCOLOR_ARGB(255, 255, 239, 213);
	static const D3DCOLOR PeachPuff = D3DCOLOR_ARGB(255, 255, 218, 185);
	static const D3DCOLOR Peru = D3DCOLOR_ARGB(255, 205, 133, 63);
	static const D3DCOLOR Pink = D3DCOLOR_ARGB(255, 255, 192, 203);
	static const D3DCOLOR Plum = D3DCOLOR_ARGB(255, 221, 160, 221);
	static const D3DCOLOR PowderBlue = D3DCOLOR_ARGB(255, 176, 224, 230);
	static const D3DCOLOR Purple = D3DCOLOR_ARGB(255, 128, 0, 128);
	static const D3DCOLOR Red = D3DCOLOR_ARGB(255, 255, 0, 0);
	static const D3DCOLOR RosyBrown = D3DCOLOR_ARGB(255, 188, 143, 143);
	static const D3DCOLOR RoyalBlue = D3DCOLOR_ARGB(255, 65, 105, 225);
	static const D3DCOLOR SaddleBrown = D3DCOLOR_ARGB(255, 139, 69, 19);
	static const D3DCOLOR Salmon = D3DCOLOR_ARGB(255, 250, 128, 114);
	static const D3DCOLOR SandyBrown = D3DCOLOR_ARGB(255, 244, 164, 96);
	static const D3DCOLOR SeaGreen = D3DCOLOR_ARGB(255, 46, 139, 87);
	static const D3DCOLOR SeaShell = D3DCOLOR_ARGB(255, 255, 245, 238);
	static const D3DCOLOR Sienna = D3DCOLOR_ARGB(255, 160, 82, 45);
	static const D3DCOLOR Silver = D3DCOLOR_ARGB(255, 192, 192, 192);
	static const D3DCOLOR SkyBlue = D3DCOLOR_ARGB(255, 135, 206, 235);
	static const D3DCOLOR SlateBlue = D3DCOLOR_ARGB(255, 106, 90, 205);
	static const D3DCOLOR SlateGray = D3DCOLOR_ARGB(255, 112, 128, 144);
	static const D3DCOLOR Snow = D3DCOLOR_ARGB(255, 255, 250, 250);
	static const D3DCOLOR SpringGreen = D3DCOLOR_ARGB(255, 0, 255, 127);
	static const D3DCOLOR SteelBlue = D3DCOLOR_ARGB(255, 70, 130, 180);
	static const D3DCOLOR Tan = D3DCOLOR_ARGB(255, 210, 180, 140);
	static const D3DCOLOR Teal = D3DCOLOR_ARGB(255, 0, 128, 128);
	static const D3DCOLOR Thistle = D3DCOLOR_ARGB(255, 216, 191, 216);
	static const D3DCOLOR Tomato = D3DCOLOR_ARGB(255, 255, 99, 71);
	static const D3DCOLOR Turquoise = D3DCOLOR_ARGB(255, 64, 224, 208);
	static const D3DCOLOR Violet = D3DCOLOR_ARGB(255, 238, 130, 238);
	static const D3DCOLOR Wheat = D3DCOLOR_ARGB(255, 245, 222, 179);
	static const D3DCOLOR White = D3DCOLOR_ARGB(255, 255, 255, 255);
	static const D3DCOLOR WhiteSmoke = D3DCOLOR_ARGB(255, 245, 245, 245);
	static const D3DCOLOR Yellow = D3DCOLOR_ARGB(255, 255, 255, 0);
	static const D3DCOLOR YellowGreen = D3DCOLOR_ARGB(255, 154, 205, 50);

};
 

Attachments

Attention! Before you post:

Read the How to Ask Questions Guide
99% of questions are answered in the Beginner's Guide, do it before asking a question.

No Hack Requests. Post in the correct section.  Search the forum first. Read the rules.

How to make a good post:

  • Fill out the form correctly
  • Tell us the game name & coding language
  • Post everything we need to know to help you
  • Ask specific questions, be descriptive
  • Post errors, line numbers & screenshots
  • Post code snippets using code tags
  • If it's a large project, zip it up and attach it

If you do not comply, your post may be deleted.  We want to help, please make a good post and we will do our best to help you.

Community Mods