Document why Gradient.reverse() doesn't reverse constant gradients
This commit is contained in:
parent
68b8156fe3
commit
f21d13600e
|
@ -49,13 +49,14 @@
|
||||||
<return type="void" />
|
<return type="void" />
|
||||||
<description>
|
<description>
|
||||||
Reverses/mirrors the gradient.
|
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>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="sample">
|
<method name="sample">
|
||||||
<return type="Color" />
|
<return type="Color" />
|
||||||
<param index="0" name="offset" type="float" />
|
<param index="0" name="offset" type="float" />
|
||||||
<description>
|
<description>
|
||||||
Returns the interpolated color specified by [code]offset[/code].
|
Returns the interpolated color specified by [param offset].
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="set_color">
|
<method name="set_color">
|
||||||
|
|
Loading…
Reference in New Issue