KTech 1.1.0
C++ 2D terminal game engine library
Loading...
Searching...
No Matches
rgbacolors.hpp
1/*
2 KTech, Kaup's C++ 2D terminal game engine library.
3 Copyright (C) 2023-2025 Ethan Kaufman (AKA Kaup)
4
5 This file is part of KTech.
6
7 KTech is free software: you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation, either version 3 of the License, or
10 any later version.
11
12 KTech is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with KTech. If not, see <https://www.gnu.org/licenses/>.
19*/
20
21#pragma once
22
23#define KTECH_DEFINITION
24#include "../ktech.hpp"
25#undef KTECH_DEFINITION
26#include "../basic/rgba.hpp"
27
29namespace KTech::RGBAColors
30{
31 constexpr RGBA red = RGBA(255, 0, 0, 255);
32 constexpr RGBA orange = RGBA(255, 128, 0, 255);
33 constexpr RGBA yellow = RGBA(255, 255, 0, 255);
34 constexpr RGBA lime = RGBA(128, 255, 0, 255);
35 constexpr RGBA green = RGBA(0, 255, 0, 255);
36 constexpr RGBA mint = RGBA(0, 255, 128, 255);
37 constexpr RGBA cyan = RGBA(0, 255, 255, 255);
38 constexpr RGBA blue = RGBA(0, 128, 255, 255);
39 constexpr RGBA primaryBlue = RGBA(0, 0, 255, 255);
40 constexpr RGBA purple = RGBA(128, 0, 255, 255);
41 constexpr RGBA magenta = RGBA(255, 0, 220, 255);
42 constexpr RGBA pink = RGBA(255, 0, 255, 255);
43 constexpr RGBA hotPink = RGBA(255, 0, 128, 255);
44 constexpr RGBA white = RGBA(255, 255, 255, 255);
45 constexpr RGBA gray = RGBA(160, 160, 160, 255);
46 constexpr RGBA black = RGBA(0, 0, 0, 255);
47 constexpr RGBA transparent = RGBA(0, 0, 0, 0);
49 namespace Widgets
50 {
51 constexpr RGBA buttonDownBlue = RGBA(160, 160, 255, 255);
52 constexpr RGBA switchUnselectedOnGreen = RGBA( 90, 160, 90, 255 );
53 constexpr RGBA switchSelectedOnGreen = RGBA( 160, 255, 160, 255 );
54 }
55}
Predefined RGBA colors.
Definition ktech.hpp:68
Like RGB, but also has an alpha channel representing transparency.
Definition rgba.hpp:30