OpenTTD Source: ColourGradients Struct Reference

OpenTTD Source 15.3

Public Types | Static Public Attributes
ColourGradients Struct Reference

Lookup table of colour shades for all 16 colour gradients. More...

## Public Types
using | ColourGradient = std::array< PixelColour, SHADE_END >

## Static Public Attributes
static std::array< ColourGradient, COLOUR_END > | gradient {}

## Detailed Description

Lookup table of colour shades for all 16 colour gradients.

8 colours per gradient from darkest (0) to lightest (7)

Definition at line 375 of file palette.cpp.

## Member Typedef Documentation

## ◆ ColourGradient

using ColourGradients::ColourGradient = std::array<PixelColour, SHADE_END>

Definition at line 377 of file palette.cpp.

## Field Documentation

## ◆ gradient

std::array<ColourGradient, COLOUR_END> ColourGradients::gradient {}
| inlinestatic

Definition at line 379 of file palette.cpp.

The documentation for this struct was generated from the following file:

- src/palette.cpp