diff options
author | VolTer <mew.pur.pur@abv.bg> | 2023-04-17 15:06:24 +0200 |
---|---|---|
committer | Yuri Sizov <yuris@humnom.net> | 2023-04-26 14:50:59 +0200 |
commit | 7b5936163736589cb234e3900b6e57948b1784ba (patch) | |
tree | 2b3ebec7e8065e9eed4d953944d134851149eda0 | |
parent | 0132c2995343e72f5a3c77469c518fbab6cf8fa8 (diff) |
Document why Gradient.reverse() doesn't reverse constant gradients
(cherry picked from commit f21d13600e41817646789a2b45221d8f5c2b2564)
-rw-r--r-- | doc/classes/Gradient.xml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/classes/Gradient.xml b/doc/classes/Gradient.xml index 33f0a7979a..969169d8f5 100644 --- a/doc/classes/Gradient.xml +++ b/doc/classes/Gradient.xml @@ -49,13 +49,14 @@ <return type="void" /> <description> Reverses/mirrors the gradient. + [b]Note:[/b] This method mirrors all points around the middle of the gradient, which may produce unexpected results when [member interpolation_mode] is set to [constant GRADIENT_INTERPOLATE_CONSTANT]. </description> </method> <method name="sample"> <return type="Color" /> <param index="0" name="offset" type="float" /> <description> - Returns the interpolated color specified by [code]offset[/code]. + Returns the interpolated color specified by [param offset]. </description> </method> <method name="set_color"> |