-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathColor.h~
37 lines (30 loc) · 882 Bytes
/
Color.h~
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*****************************************************************************
Yihsiang Liow
Copyright
*****************************************************************************/
#ifndef COLOR_H
#define COLOR_H
#include <iostream>
typedef SDL_Color Color;
/*
class Color
{
int r, g, b;
};
*/
const Color BLACK = { 0, 0, 0, 0};
const Color RED = {255, 0, 0, 0};
const Color WHITE = {255, 255, 255, 0};
const Color GREEN = { 0, 255, 0, 0};
const Color BLUE = { 0, 0, 255, 0};
const Color GRAY = {130, 130, 130, 0};
const Color DARKGRAY = { 50, 50, 50, 0};
const Color YELLOW = {231, 228, 13, 0};
const Color CYAN = { 0, 255, 255, 0};
const Color ORANGE = {255, 114, 0, 0};
inline Color rand_color()
{
Color c = {rand() % 256, rand() % 256, rand() % 256, 0};
return c;
}
#endif