bn::sprite_palettes_grayscale_to_action class

Modifies the intensity of the grayscale effect applied to all sprite color palettes until it has a given state.

Base classes

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

Constructors, destructors, conversion operators

sprite_palettes_grayscale_to_action(int duration_updates, fixed final_intensity)
Constructor.

Public functions

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

Function documentation

bn::sprite_palettes_grayscale_to_action::sprite_palettes_grayscale_to_action(int duration_updates, fixed final_intensity)

Constructor.

Parameters
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].