classref: Sync with current master branch (705b7a0)

This commit is contained in:
Godot Organization
2024-05-31 13:54:35 +00:00
parent 32f1b6ea48
commit eacfba2716
835 changed files with 17350 additions and 17256 deletions
+15 -15
View File
@@ -82,7 +82,7 @@ Enumerations
.. rst-class:: classref-enumeration
enum **InterpolationMode**:
enum **InterpolationMode**: :ref:`🔗<enum_Gradient_InterpolationMode>`
.. _class_Gradient_constant_GRADIENT_INTERPOLATE_LINEAR:
@@ -116,7 +116,7 @@ Cubic interpolation.
.. rst-class:: classref-enumeration
enum **ColorSpace**:
enum **ColorSpace**: :ref:`🔗<enum_Gradient_ColorSpace>`
.. _class_Gradient_constant_GRADIENT_COLOR_SPACE_SRGB:
@@ -155,7 +155,7 @@ Property Descriptions
.. rst-class:: classref-property
:ref:`PackedColorArray<class_PackedColorArray>` **colors** = ``PackedColorArray(0, 0, 0, 1, 1, 1, 1, 1)``
:ref:`PackedColorArray<class_PackedColorArray>` **colors** = ``PackedColorArray(0, 0, 0, 1, 1, 1, 1, 1)`` :ref:`🔗<class_Gradient_property_colors>`
.. rst-class:: classref-property-setget
@@ -176,7 +176,7 @@ Gradient's colors as a :ref:`PackedColorArray<class_PackedColorArray>`.
.. rst-class:: classref-property
:ref:`ColorSpace<enum_Gradient_ColorSpace>` **interpolation_color_space** = ``0``
:ref:`ColorSpace<enum_Gradient_ColorSpace>` **interpolation_color_space** = ``0`` :ref:`🔗<class_Gradient_property_interpolation_color_space>`
.. rst-class:: classref-property-setget
@@ -195,7 +195,7 @@ The color space used to interpolate between points of the gradient. It does not
.. rst-class:: classref-property
:ref:`InterpolationMode<enum_Gradient_InterpolationMode>` **interpolation_mode** = ``0``
:ref:`InterpolationMode<enum_Gradient_InterpolationMode>` **interpolation_mode** = ``0`` :ref:`🔗<class_Gradient_property_interpolation_mode>`
.. rst-class:: classref-property-setget
@@ -212,7 +212,7 @@ The algorithm used to interpolate between points of the gradient. See :ref:`Inte
.. rst-class:: classref-property
:ref:`PackedFloat32Array<class_PackedFloat32Array>` **offsets** = ``PackedFloat32Array(0, 1)``
:ref:`PackedFloat32Array<class_PackedFloat32Array>` **offsets** = ``PackedFloat32Array(0, 1)`` :ref:`🔗<class_Gradient_property_offsets>`
.. rst-class:: classref-property-setget
@@ -238,7 +238,7 @@ Method Descriptions
.. rst-class:: classref-method
|void| **add_point**\ (\ offset\: :ref:`float<class_float>`, color\: :ref:`Color<class_Color>`\ )
|void| **add_point**\ (\ offset\: :ref:`float<class_float>`, color\: :ref:`Color<class_Color>`\ ) :ref:`🔗<class_Gradient_method_add_point>`
Adds the specified color to the gradient, with the specified offset.
@@ -250,7 +250,7 @@ Adds the specified color to the gradient, with the specified offset.
.. rst-class:: classref-method
:ref:`Color<class_Color>` **get_color**\ (\ point\: :ref:`int<class_int>`\ )
:ref:`Color<class_Color>` **get_color**\ (\ point\: :ref:`int<class_int>`\ ) :ref:`🔗<class_Gradient_method_get_color>`
Returns the color of the gradient color at index ``point``.
@@ -262,7 +262,7 @@ Returns the color of the gradient color at index ``point``.
.. rst-class:: classref-method
:ref:`float<class_float>` **get_offset**\ (\ point\: :ref:`int<class_int>`\ )
:ref:`float<class_float>` **get_offset**\ (\ point\: :ref:`int<class_int>`\ ) :ref:`🔗<class_Gradient_method_get_offset>`
Returns the offset of the gradient color at index ``point``.
@@ -274,7 +274,7 @@ Returns the offset of the gradient color at index ``point``.
.. rst-class:: classref-method
:ref:`int<class_int>` **get_point_count**\ (\ ) |const|
:ref:`int<class_int>` **get_point_count**\ (\ ) |const| :ref:`🔗<class_Gradient_method_get_point_count>`
Returns the number of colors in the gradient.
@@ -286,7 +286,7 @@ Returns the number of colors in the gradient.
.. rst-class:: classref-method
|void| **remove_point**\ (\ point\: :ref:`int<class_int>`\ )
|void| **remove_point**\ (\ point\: :ref:`int<class_int>`\ ) :ref:`🔗<class_Gradient_method_remove_point>`
Removes the color at index ``point``.
@@ -298,7 +298,7 @@ Removes the color at index ``point``.
.. rst-class:: classref-method
|void| **reverse**\ (\ )
|void| **reverse**\ (\ ) :ref:`🔗<class_Gradient_method_reverse>`
Reverses/mirrors the gradient.
@@ -312,7 +312,7 @@ Reverses/mirrors the gradient.
.. rst-class:: classref-method
:ref:`Color<class_Color>` **sample**\ (\ offset\: :ref:`float<class_float>`\ )
:ref:`Color<class_Color>` **sample**\ (\ offset\: :ref:`float<class_float>`\ ) :ref:`🔗<class_Gradient_method_sample>`
Returns the interpolated color specified by ``offset``.
@@ -324,7 +324,7 @@ Returns the interpolated color specified by ``offset``.
.. rst-class:: classref-method
|void| **set_color**\ (\ point\: :ref:`int<class_int>`, color\: :ref:`Color<class_Color>`\ )
|void| **set_color**\ (\ point\: :ref:`int<class_int>`, color\: :ref:`Color<class_Color>`\ ) :ref:`🔗<class_Gradient_method_set_color>`
Sets the color of the gradient color at index ``point``.
@@ -336,7 +336,7 @@ Sets the color of the gradient color at index ``point``.
.. rst-class:: classref-method
|void| **set_offset**\ (\ point\: :ref:`int<class_int>`, offset\: :ref:`float<class_float>`\ )
|void| **set_offset**\ (\ point\: :ref:`int<class_int>`, offset\: :ref:`float<class_float>`\ ) :ref:`🔗<class_Gradient_method_set_offset>`
Sets the offset for the gradient color at index ``point``.