aboutsummaryrefslogtreecommitdiff
path: root/source2-basehook/Source2SDK/Color.hpp
blob: d2513a767c9ed74645639081033445051a0ca722 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#pragma once

class Color
{
public:
	Color();
	Color(BYTE r, BYTE g, BYTE b, BYTE a = 255)
	{
		this->r = r,
			this->g = g,
			this->b = b,
			this->a = a;
	}
	BYTE r, g, b, a;

	BYTE& operator[](int i)
	{
		return *(BYTE*)((int)this + i);
	}
};