stmm-games-doc  0.32.0
Classes | Functions
stmg::CommonTheme Namespace Reference

Classes

struct  NamedRgbColor
 

Functions

int32_t getTotSvgColors () noexcept
 The number of available named colors. More...
 
const NamedRgbColorgetSvgColor (int32_t nPal) noexcept
 Get named svg color. More...
 

Function Documentation

◆ getSvgColor()

const NamedRgbColor& stmg::CommonTheme::getSvgColor ( int32_t  nPal)
noexcept

Get named svg color.

Parameters
nPalThe color index (or palette number). Must be >= 0 and < getTotSvgColors().
Returns
The named color.

◆ getTotSvgColors()

int32_t stmg::CommonTheme::getTotSvgColors ( )
noexcept

The number of available named colors.

Returns
The total number of named colors.