bn::sprite_palette_grayscale_manager class

Manages the intensity of the grayscale effect applied to a sprite_palette_ptr.

Contents

Public static functions

static auto get(const sprite_palette_ptr& palette) -> fixed
Returns the intensity of the grayscale effect applied to the given sprite_palette_ptr.
static void set(fixed intensity, sprite_palette_ptr& palette)
Sets the intensity of the grayscale effect applied to the given sprite_palette_ptr.

Function documentation

static void bn::sprite_palette_grayscale_manager::set(fixed intensity, sprite_palette_ptr& palette)

Sets the intensity of the grayscale effect applied to the given sprite_palette_ptr.

Parameters
intensity New intensity in the range [0..1].
palette sprite_palette_ptr to modify.