OpenTTD Source 20260531-master-g0e951f3528
string_colours.h
Go to the documentation of this file.
1/*
2 * This file is part of OpenTTD.
3 * OpenTTD is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.
4 * OpenTTD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
5 * See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with OpenTTD. If not, see <https://www.gnu.org/licenses/old-licenses/gpl-2.0>.
6 */
7
9
11static constexpr PixelColour _string_colourmap[17] = {
12 PixelColour{150}, // TextColour::Blue
13 PixelColour{ 12}, // TextColour::Silver
14 PixelColour{189}, // TextColour::Gold
15 PixelColour{184}, // TextColour::Red
16 PixelColour{174}, // TextColour::Purple
17 PixelColour{ 30}, // TextColour::LightBrown
18 PixelColour{195}, // TextColour::Orange
19 PixelColour{209}, // TextColour::Green
20 PixelColour{ 68}, // TextColour::Yellow
21 PixelColour{ 95}, // TextColour::DarkGreen
22 PixelColour{ 79}, // TextColour::Cream
23 PixelColour{116}, // TextColour::Brown
24 PixelColour{ 15}, // TextColour::White
25 PixelColour{152}, // TextColour::LightBlue
26 PixelColour{ 6}, // TextColour::Grey
27 PixelColour{133}, // TextColour::DarkBlue
28 PixelColour{ 1}, // TextColour::Black
29};
static constexpr PixelColour _string_colourmap[17]
Colour mapping for TextColour.
Colour for pixel/line drawing.
Definition gfx_type.h:307