bn::bg_palettes_brightness_to_action class

Modifies the brightness of all background color palettes until it has a given state.

Base classes

template<typename Property, class PropertyManager>
class to_template_action<fixed, bg_palettes_brightness_manager>
Modifies the property until it has a given state.

Constructors, destructors, conversion operators

bg_palettes_brightness_to_action(int duration_updates, fixed final_brightness)
Constructor.

Public functions

auto final_brightness() const -> fixed
Returns the brightness when the action is updated the given number of times.

Function documentation

bn::bg_palettes_brightness_to_action::bg_palettes_brightness_to_action(int duration_updates, fixed final_brightness)

Constructor.

Parameters
duration_updates Number of times that the action must be updated until the brightness is equal to final_brightness.
final_brightness Brightness when the action is updated duration_updates times.

This brightness must be in the range [0..1].