class
#include <bn_bg_palettes_actions.h>
bg_palettes_contrast_loop_action Modifies the contrast of all background color palettes from a minimum to a maximum. When the contrast 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, bg_palettes_contrast_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
- bg_palettes_contrast_loop_action(int duration_updates, fixed final_contrast)
- Constructor.
Public functions
- auto final_contrast() const -> fixed
- When the contrast is equal to the returned parameter, it goes back to its initial state and vice versa.
Function documentation
bn:: bg_palettes_contrast_loop_action:: bg_palettes_contrast_loop_action(int duration_updates,
fixed final_contrast)
Constructor.
Parameters | |
---|---|
duration_updates | How much times the action has to be updated before changing the direction of the contrast delta. |
final_contrast | When the contrast is equal to this parameter, it goes back to its initial state and vice versa. |
This contrast must be in the range [0..1].