Nugget
constants.hh
1 /*
2 
3 MIT License
4 
5 Copyright (c) 2022 PCSX-Redux authors
6 
7 Permission is hereby granted, free of charge, to any person obtaining a copy
8 of this software and associated documentation files (the "Software"), to deal
9 in the Software without restriction, including without limitation the rights
10 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11 copies of the Software, and to permit persons to whom the Software is
12 furnished to do so, subject to the following conditions:
13 
14 The above copyright notice and this permission notice shall be included in all
15 copies or substantial portions of the Software.
16 
17 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23 SOFTWARE.
24 
25 */
26 
27 #pragma once
28 
29 #include <stdint.h>
30 
31 #include "psyqo/primitives/common.hh"
32 
33 // This file holds all of the constants used throughout the example.
34 
35 static constexpr psyqo::Color HIRED = {{.r = 240, .g = 0, .b = 0}};
36 static constexpr psyqo::Color HIORANGE = {{.r = 240, .g = 160, .b = 0}};
37 static constexpr psyqo::Color HIYELLOW = {{.r = 240, .g = 240, .b = 0}};
38 static constexpr psyqo::Color HIGREEN = {{.r = 0, .g = 240, .b = 0}};
39 static constexpr psyqo::Color HIBLUE = {{.r = 0, .g = 0, .b = 240}};
40 static constexpr psyqo::Color HICYAN = {{.r = 0, .g = 240, .b = 240}};
41 static constexpr psyqo::Color HIPURPLE = {{.r = 160, .g = 0, .b = 240}};
42 
43 static constexpr psyqo::Color RED = {{.r = 180, .g = 82, .b = 84}};
44 static constexpr psyqo::Color ORANGE = {{.r = 210, .g = 160, .b = 104}};
45 static constexpr psyqo::Color YELLOW = {{.r = 236, .g = 224, .b = 158}};
46 static constexpr psyqo::Color GREEN = {{.r = 176, .g = 176, .b = 98}};
47 static constexpr psyqo::Color BLUE = {{.r = 76, .g = 128, .b = 202}};
48 static constexpr psyqo::Color CYAN = {{.r = 102, .g = 194, .b = 210}};
49 static constexpr psyqo::Color PURPLE = {{.r = 206, .g = 176, .b = 202}};
50 
51 static constexpr psyqo::Color WHITE = {{.r = 255, .g = 255, .b = 255}};
52 static constexpr psyqo::Color GREY = {{.r = 160, .g = 160, .b = 160}};
53 static constexpr psyqo::Color DARKGREY = {{.r = 80, .g = 80, .b = 80}};
54 static constexpr psyqo::Color DARKERGREY = {{.r = 40, .g = 40, .b = 40}};
55 static constexpr psyqo::Color BLACK = {{.r = 0, .g = 0, .b = 0}};
56 
57 static constexpr psyqo::Color PIECES_COLORS[7] = {CYAN, YELLOW, PURPLE, BLUE, ORANGE, RED, GREEN};
58 static constexpr psyqo::Color PIECES_HICOLORS[7] = {HICYAN, HIYELLOW, HIPURPLE, HIBLUE, HIORANGE, HIRED, HIGREEN};
The Color struct.
Definition: common.hh:91