Improve CurveTexture documentation

This commit is contained in:
Hugo Locurcio 2022-06-13 14:06:34 +02:00
parent 0d2be435ea
commit 87f22083af
No known key found for this signature in database
GPG key ID: 39E8F8BE30B0A49C
3 changed files with 4 additions and 4 deletions

View file

@ -12,10 +12,10 @@
</methods>
<members>
<member name="curve" type="Curve" setter="set_curve" getter="get_curve">
The [code]curve[/code] rendered onto the texture.
The [Curve] that is rendered onto the texture.
</member>
<member name="width" type="int" setter="set_width" getter="get_width" default="2048">
The width of the texture.
The width of the texture (in pixels). Higher values make it possible to represent high-frequency data better (such as sudden direction changes), at the cost of increased generation time and memory usage.
</member>
</members>
<constants>

View file

@ -4,7 +4,7 @@
Gradient-filled texture.
</brief_description>
<description>
GradientTexture uses a [Gradient] to fill the texture data. The gradient will be filled from left to right using colors obtained from the gradient. This means the texture does not necessarily represent an exact copy of the gradient, but instead an interpolation of samples obtained from the gradient at fixed steps (see [member width]).
GradientTexture uses a [Gradient] to fill the texture data. The gradient will be filled from left to right using colors obtained from the gradient. This means the texture does not necessarily represent an exact copy of the gradient, but instead an interpolation of samples obtained from the gradient at fixed steps (see [member width]). See also [GradientTexture2D] and [CurveTexture].
</description>
<tutorials>
</tutorials>

View file

@ -4,7 +4,7 @@
Gradient-filled 2D texture.
</brief_description>
<description>
The texture uses a [Gradient] to fill the texture data in 2D space. The gradient is filled according to the specified [member fill] and [member repeat] types using colors obtained from the gradient. The texture does not necessarily represent an exact copy of the gradient, but instead an interpolation of samples obtained from the gradient at fixed steps (see [member width] and [member height]).
The texture uses a [Gradient] to fill the texture data in 2D space. The gradient is filled according to the specified [member fill] and [member repeat] types using colors obtained from the gradient. The texture does not necessarily represent an exact copy of the gradient, but instead an interpolation of samples obtained from the gradient at fixed steps (see [member width] and [member height]). See also [GradientTexture] and [CurveTexture].
</description>
<tutorials>
</tutorials>