class
#include <bn_sprite_palette_actions.h>
sprite_palette_hue_shift_toggle_action Changes the intensity of the hue shift effect applied to a sprite_
Base classes
-
template<typename Value, typename Property, class PropertyManager>class toggle_value_template_action<sprite_palette_ptr, fixed, sprite_palette_hue_shift_manager>
- Changes the property of a value when the action is updated a given number of times.
Constructors, destructors, conversion operators
-
sprite_palette_hue_shift_toggle_action(const sprite_
palette_ ptr& palette, int duration_updates, fixed new_intensity) - Constructor.
-
sprite_palette_hue_shift_toggle_action(sprite_
palette_ ptr&& palette, int duration_updates, fixed new_intensity) - Constructor.
Public functions
-
auto palette() const -> const sprite_
palette_ ptr& - Returns the sprite_
palette_ ptr to modify. - auto new_intensity() const -> fixed
- Returns the intensity when the action is updated the given number of times.
Function documentation
bn:: sprite_palette_hue_shift_toggle_action:: sprite_palette_hue_shift_toggle_action(const sprite_ palette_ ptr& palette,
int duration_updates,
fixed new_intensity)
Constructor.
Parameters | |
---|---|
palette | sprite_ |
duration_updates | How many times the action has to be updated to change the intensity. |
new_intensity | New intensity when the action is updated duration_updates times. |
This intensity must be in the range [0..1].
bn:: sprite_palette_hue_shift_toggle_action:: sprite_palette_hue_shift_toggle_action(sprite_ palette_ ptr&& palette,
int duration_updates,
fixed new_intensity)
Constructor.
Parameters | |
---|---|
palette | sprite_ |
duration_updates | How many times the action has to be updated to change the intensity. |
new_intensity | New intensity when the action is updated duration_updates times. |
This intensity must be in the range [0..1].