class
#include <bn_sprite_palettes_actions.h>
sprite_palettes_contrast_to_action Modifies the contrast of all sprite color palettes until it has a given state.
Base classes
-
template<typename Property, class PropertyManager>class to_template_action<fixed, sprite_palettes_contrast_manager>
- Modifies the property until it has a given state.
Constructors, destructors, conversion operators
- sprite_palettes_contrast_to_action(int duration_updates, fixed final_contrast)
- Constructor.
Public functions
- auto final_contrast() const -> fixed
- Returns the contrast when the action is updated the given number of times.
Function documentation
bn:: sprite_palettes_contrast_to_action:: sprite_palettes_contrast_to_action(int duration_updates,
fixed final_contrast)
Constructor.
Parameters | |
---|---|
duration_updates | Number of times that the action must be updated until the contrast is equal to final_contrast. |
final_contrast | Contrast when the action is updated duration_updates times. |
This contrast must be in the range [0..1].