namespace
#include <bn_sprite_palettes.h>
sprite_palettes Sprite color palettes related functions.
Functions
- auto used_colors_count() -> int
- Returns the number of used sprite colors.
- auto available_colors_count() -> int
- Returns the number of available sprite colors.
- auto brightness() -> fixed
- Returns the brightness of all sprite color palettes.
- void set_brightness(fixed brightness)
- Sets the brightness of all sprite color palettes.
- auto contrast() -> fixed
- Returns the contrast of all sprite color palettes.
- void set_contrast(fixed contrast)
- Sets the contrast of all sprite color palettes.
- auto intensity() -> fixed
- Returns the intensity of all sprite color palettes.
- void set_intensity(fixed intensity)
- Sets the intensity of all sprite color palettes.
- auto inverted() -> bool
- Indicates if the colors of all sprite color palettes are inverted or not.
- void set_inverted(bool inverted)
- Sets if the colors of all sprite color palettes must be inverted or not.
- auto grayscale_intensity() -> fixed
- Returns the intensity of the grayscale effect applied to all sprite color palettes.
- void set_grayscale_intensity(fixed intensity)
- Sets the intensity of the grayscale effect applied to all sprite color palettes.
- auto hue_shift_intensity() -> fixed
- Returns the intensity of the hue shift effect applied to all sprite color palettes.
- void set_hue_shift_intensity(fixed intensity)
- Sets the intensity of the hue shift effect applied to all sprite color palettes.
- auto fade_color() -> color
- Returns the color of the fade effect applied to all sprite color palettes.
- auto fade_intensity() -> fixed
- Returns the intensity of the fade effect applied to all sprite color palettes.
- void set_fade_color(color color)
- Sets the color of the fade effect applied to all sprite color palettes.
- void set_fade_intensity(fixed intensity)
- Sets the intensity of the fade effect applied to all sprite color palettes.
- void set_fade(color color, fixed intensity)
- Sets the color and the intensity of the fade effect applied to all sprite color palettes.
- void log_status()
- Logs the current status of the sprite color palettes manager.
Function documentation
void bn:: sprite_palettes:: set_brightness(fixed brightness)
Sets the brightness of all sprite color palettes.
Parameters | |
---|---|
brightness | New brightness in the range [0..1]. |
void bn:: sprite_palettes:: set_contrast(fixed contrast)
Sets the contrast of all sprite color palettes.
Parameters | |
---|---|
contrast | New contrast in the range [0..1]. |
void bn:: sprite_palettes:: set_intensity(fixed intensity)
Sets the intensity of all sprite color palettes.
Parameters | |
---|---|
intensity | New intensity in the range [0..1]. |
void bn:: sprite_palettes:: set_grayscale_intensity(fixed intensity)
Sets the intensity of the grayscale effect applied to all sprite color palettes.
Parameters | |
---|---|
intensity | New intensity in the range [0..1]. |
void bn:: sprite_palettes:: set_hue_shift_intensity(fixed intensity)
Sets the intensity of the hue shift effect applied to all sprite color palettes.
Parameters | |
---|---|
intensity | New intensity in the range [0..1]. |
void bn:: sprite_palettes:: set_fade_intensity(fixed intensity)
Sets the intensity of the fade effect applied to all sprite color palettes.
Parameters | |
---|---|
intensity | New intensity in the range [0..1]. |