__NOTOC__
DisplayEffect
is an interface for toying with the display.
SuperTux creates an instance named Effect
when starting the scripting engine. Its usage is preferred – creating another instance might have unexpected side effects and is strongly discouraged. (Use sector.Effect
in the console.)
fade_out(float fadetime) |
Gradually fades out the screen to black for the next |
---|---|
fade_in(float fadetime) |
Gradually fades in the screen from black for the next |
set_black(bool black) |
Blackens or un-blackens the screen (depending on the value of |
is_black() |
Returns: |
sixteen_to_nine(float fadetime) |
Sets the display ratio to 16:9, effectively adding black bars at the top and bottom of the screen. Should be used before cutscenes. Gradually fades to this state for the next |
four_to_three(float fadetime) |
Sets the display ratio to 4:3, removing the black bars added by |
None