bn::sprite_palettes_contrast_toggle_action class

Changes the contrast of all sprite color palettes when the action is updated a given number of times.

Base classes

template<typename Property, class PropertyManager>
class toggle_template_action<fixed, sprite_palettes_contrast_manager>
Changes the property when the action is updated a given number of times.

Constructors, destructors, conversion operators

sprite_palettes_contrast_toggle_action(int duration_updates, fixed new_contrast)
Constructor.

Public functions

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

Function documentation

bn::sprite_palettes_contrast_toggle_action::sprite_palettes_contrast_toggle_action(int duration_updates, fixed new_contrast)

Constructor.

Parameters
duration_updates How many times the action has to be updated to change the contrast.
new_contrast New contrast when the action is updated duration_updates times.

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