Merge pull request #76168 from MewPurPur/justify-gradient-reverse-not-reversing

Document why Gradient.reverse() doesn't reverse constant gradients
This commit is contained in:
Rémi Verschelde 2023-04-25 14:44:02 +02:00
commit c89b3710cb
No known key found for this signature in database
GPG Key ID: C3336907360768E1

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