Skip to content

Commit 2d05fb7

Browse files
committed
Update scripting reference (SuperTux/supertux@02fd5c7)
1 parent edd3405 commit 2d05fb7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

ScriptingGradient.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ Method | Explanation
2525
-------|-------
2626
`void set_direction(string direction)` | Sets the direction of the gradient. <br /><br /> `direction` - Can be "horizontal", "vertical", "horizontal_sector" or "vertical_sector".
2727
`string get_direction()` | Returns the direction of the gradient. Possible values are "horizontal", "vertical", "horizontal_sector" or "vertical_sector".
28-
`void set_color1(float red, float green, float blue)` | Set top gradient color.
29-
`void set_color2(float red, float green, float blue)` | Set bottom gradient color.
30-
`void set_colors(float red1, float green1, float blue1, float red2, float green2, float blue2)` | Set both gradient colors.
31-
`void fade_color1(float red, float green, float blue, float time)` | Fade the top gradient color to a specified new color in `time` seconds.
32-
`void fade_color2(float red, float green, float blue, float time)` | Fade the bottom gradient color to a specified new color in `time` seconds.
33-
`void fade_colors(float red1, float green1, float blue1, float red2, float green2, float blue2, float time)` | Fade both gradient colors to specified new colors in `time` seconds.
28+
`void set_color1(float red, float green, float blue, float alpha = 1.f)` | Set top gradient color.
29+
`void set_color2(float red, float green, float blue, float alpha = 1.f)` | Set bottom gradient color.
30+
`void set_colors(float red1, float green1, float blue1, float red2, float green2, float blue2, float alpha1 = 1.f, float alpha2 = 1.f)` | Set both gradient colors.
31+
`void fade_color1(float red, float green, float blue, float time, float alpha = 1.f)` | Fade the top gradient color to a specified new color in `time` seconds.
32+
`void fade_color2(float red, float green, float blue, float time, float alpha = 1.f)` | Fade the bottom gradient color to a specified new color in `time` seconds.
33+
`void fade_colors(float red1, float green1, float blue1, float red2, float green2, float blue2, float time, float alpha1 = 1.f, float alpha2 = 1.f)` | Fade both gradient colors to specified new colors in `time` seconds.
3434
`void swap_colors()` | Swap top and bottom gradient colors.
3535

3636

0 commit comments

Comments
 (0)