bn::bg_palette_rotate_manager class

Manages the number of colors to rotate to the right in a bg_palette_ptr.

Public static functions

static auto get(const bg_palette_ptr& palette) -> int
Returns the number of colors to rotate to the right in the given bg_palette_ptr.
static void set(int count, bg_palette_ptr& palette)
Sets the number of colors to rotate to the right in the given bg_palette_ptr.

Function documentation

static void bn::bg_palette_rotate_manager::set(int count, bg_palette_ptr& palette)

Sets the number of colors to rotate to the right in the given bg_palette_ptr.

Parameters
count Number of colors to rotate to the right in the range [2 - colors_count() .. colors_count() - 2].
palette bg_palette_ptr to modify.