class
#include <bn_bg_palette_actions.h>
bg_palette_grayscale_to_action Modifies the intensity of the grayscale effect applied to a bg_
Base classes
-
template<typename Value, typename Property, class PropertyManager>class to_value_template_action<bg_palette_ptr, fixed, bg_palette_grayscale_manager>
- Modifies the property of a value until it has a given state.
Constructors, destructors, conversion operators
-
bg_palette_grayscale_to_action(const bg_
palette_ ptr& palette, int duration_updates, fixed final_intensity) - Constructor.
-
bg_palette_grayscale_to_action(bg_
palette_ ptr&& palette, int duration_updates, fixed final_intensity) - Constructor.
Public functions
-
auto palette() const -> const bg_
palette_ ptr& - Returns the bg_
palette_ ptr to modify. - auto final_intensity() const -> fixed
- Returns the intensity when the action is updated the given number of times.
Function documentation
bn:: bg_palette_grayscale_to_action:: bg_palette_grayscale_to_action(const bg_ palette_ ptr& palette,
int duration_updates,
fixed final_intensity)
Constructor.
Parameters | |
---|---|
palette | bg_ |
duration_updates | Number of times that the action must be updated until the intensity is equal to final_intensity. |
final_intensity | Intensity when the action is updated duration_updates times. |
This intensity must be in the range [0..1].
bn:: bg_palette_grayscale_to_action:: bg_palette_grayscale_to_action(bg_ palette_ ptr&& palette,
int duration_updates,
fixed final_intensity)
Constructor.
Parameters | |
---|---|
palette | bg_ |
duration_updates | Number of times that the action must be updated until the intensity is equal to final_intensity. |
final_intensity | Intensity when the action is updated duration_updates times. |
This intensity must be in the range [0..1].