mirror of
https://github.com/stan220/godot-docs.git
synced 2026-09-08 17:28:58 +00:00
dync classref with current source
This commit is contained in:
+10
-10
@@ -14,7 +14,7 @@ Gradient
|
||||
Brief Description
|
||||
-----------------
|
||||
|
||||
Color interpolator node.
|
||||
A color interpolator resource which can be used to generate colors between user-defined color points.
|
||||
|
||||
Properties
|
||||
----------
|
||||
@@ -49,7 +49,7 @@ Methods
|
||||
Description
|
||||
-----------
|
||||
|
||||
Given a set of colors, this node will interpolate them in order, meaning, that if you have color 1, color 2 and color 3, the ramp will interpolate (generate the colors between two colors) from color 1 to color 2 and from color 2 to color 3. Initially the ramp will have 2 colors (black and white), one (black) at ramp lower offset 0 and the other (white) at the ramp higher offset 1.
|
||||
Given a set of colors, this resource will interpolate them in order. This means that if you have color 1, color 2 and color 3, the ramp will interpolate from color 1 to color 2 and from color 2 to color 3. The ramp will initially have 2 colors (black and white), one (black) at ramp lower offset 0 and the other (white) at the ramp higher offset 1.
|
||||
|
||||
Property Descriptions
|
||||
---------------------
|
||||
@@ -85,47 +85,47 @@ Method Descriptions
|
||||
|
||||
- void **add_point** **(** :ref:`float<class_float>` offset, :ref:`Color<class_Color>` color **)**
|
||||
|
||||
Adds the specified color to the end of the ramp, with the specified offset
|
||||
Adds the specified color to the end of the ramp, with the specified offset.
|
||||
|
||||
.. _class_Gradient_method_get_color:
|
||||
|
||||
- :ref:`Color<class_Color>` **get_color** **(** :ref:`int<class_int>` point **)** const
|
||||
|
||||
Returns the color of the ramp color at index *point*
|
||||
Returns the color of the ramp color at index ``point``.
|
||||
|
||||
.. _class_Gradient_method_get_offset:
|
||||
|
||||
- :ref:`float<class_float>` **get_offset** **(** :ref:`int<class_int>` point **)** const
|
||||
|
||||
Returns the offset of the ramp color at index *point*
|
||||
Returns the offset of the ramp color at index ``point``.
|
||||
|
||||
.. _class_Gradient_method_get_point_count:
|
||||
|
||||
- :ref:`int<class_int>` **get_point_count** **(** **)** const
|
||||
|
||||
Returns the number of colors in the ramp
|
||||
Returns the number of colors in the ramp.
|
||||
|
||||
.. _class_Gradient_method_interpolate:
|
||||
|
||||
- :ref:`Color<class_Color>` **interpolate** **(** :ref:`float<class_float>` offset **)**
|
||||
|
||||
Returns the interpolated color specified by *offset*
|
||||
Returns the interpolated color specified by ``offset``.
|
||||
|
||||
.. _class_Gradient_method_remove_point:
|
||||
|
||||
- void **remove_point** **(** :ref:`int<class_int>` offset **)**
|
||||
|
||||
Removes the color at the index *offset*
|
||||
Removes the color at the index ``offset``.
|
||||
|
||||
.. _class_Gradient_method_set_color:
|
||||
|
||||
- void **set_color** **(** :ref:`int<class_int>` point, :ref:`Color<class_Color>` color **)**
|
||||
|
||||
Sets the color of the ramp color at index *point*
|
||||
Sets the color of the ramp color at index ``point``.
|
||||
|
||||
.. _class_Gradient_method_set_offset:
|
||||
|
||||
- void **set_offset** **(** :ref:`int<class_int>` point, :ref:`float<class_float>` offset **)**
|
||||
|
||||
Sets the offset for the ramp color at index *point*
|
||||
Sets the offset for the ramp color at index ``point``.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user