summaryrefslogtreecommitdiff
path: root/doc/classes
diff options
context:
space:
mode:
authorVolTer <mew.pur.pur@abv.bg>2023-04-17 15:06:24 +0200
committerYuri Sizov <yuris@humnom.net>2023-04-26 14:50:59 +0200
commit7b5936163736589cb234e3900b6e57948b1784ba (patch)
tree2b3ebec7e8065e9eed4d953944d134851149eda0 /doc/classes
parent0132c2995343e72f5a3c77469c518fbab6cf8fa8 (diff)
Document why Gradient.reverse() doesn't reverse constant gradients
(cherry picked from commit f21d13600e41817646789a2b45221d8f5c2b2564)
Diffstat (limited to 'doc/classes')
-rw-r--r--doc/classes/Gradient.xml3
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">