1
0
mirror of https://github.com/godotengine/godot.git synced 2026-01-06 19:41:11 +00:00

Document why Gradient.reverse() doesn't reverse constant gradients

(cherry picked from commit f21d13600e)
This commit is contained in:
VolTer
2023-04-17 15:06:24 +02:00
committed by Yuri Sizov
parent 0132c29953
commit 7b59361637

View File

@@ -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">