class
#include <bn_sprite_palettes_actions.h>
sprite_palettes_hue_shift_loop_action Modifies the intensity of the hue shift effect applied to all sprite color palettes from a minimum to a maximum. When the intensity is equal to the given final state, it goes back to its initial state and vice versa.
Base classes
-
template<typename Property, class PropertyManager>class loop_template_action<fixed, sprite_palettes_hue_shift_manager>
- Modifies the property by delta from a minimum to a maximum. When the property is equal to the given final state, it goes back to its initial state and vice versa.
Constructors, destructors, conversion operators
- sprite_palettes_hue_shift_loop_action(int duration_updates, fixed final_intensity)
- Constructor.
Public functions
- auto final_intensity() const -> fixed
- When the intensity is equal to the returned parameter, it goes back to its initial state and vice versa.
Function documentation
bn:: sprite_palettes_hue_shift_loop_action:: sprite_palettes_hue_shift_loop_action(int duration_updates,
fixed final_intensity)
Constructor.
Parameters | |
---|---|
duration_updates | How many times the action has to be updated before changing the direction of the intensity delta. |
final_intensity | When the intensity is equal to this parameter, it goes back to its initial state and vice versa. |
This intensity must be in the range [0..1].