You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ScriptingGradient.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,12 +25,12 @@ Method | Explanation
25
25
-------|-------
26
26
`void set_direction(string direction)` | Sets the direction of the gradient. <br /><br /> `direction` - Can be "horizontal", "vertical", "horizontal_sector" or "vertical_sector".
27
27
`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.
`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.
34
34
`void swap_colors()` | Swap top and bottom gradient colors.
0 commit comments