[][src]Module umpire::color

Color

Umpire's approach to color:

  • Support 256 colors as the main color scheme as this is widely supported and gives us a much nicer set of options
  • Support 16 colors as a fallback, with the number of players limited by the number of available colors
  • Support true color (24 bit color) as a secondary option for those with proper support

The default is 256 colors, but the color scheme can be selected by a command line flag.

Umpire's colors are divided into two categories: normal and paired.

Normal colors are single colors. Just like normal.

Paired colors have an "active" and a "foggy" color, paired together. This is to support the fog of war effect on the map.

There are a further three categories:

  • general: colors that can apply anywhere
  • map: colors only used on the map
  • text: colors used in textual output outside of the map

Structs

ColorPair
Palette

Enums

Colors

Traits

Colorized
PairColorized
PaletteT

Functions

palette16
palette24
palette256