class
#include <bn_sprite_palette_actions.h>
sprite_palette_grayscale_manager Manages the intensity of the grayscale effect applied to a sprite_
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_
Parameters | |
---|---|
intensity | New intensity in the range [0..1]. |
palette | sprite_ |