class_gradienttexture.rst 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the GradientTexture.xml source instead.
  3. .. The source is found in doc/classes or modules/<name>/doc_classes.
  4. .. _class_GradientTexture:
  5. GradientTexture
  6. ===============
  7. **Inherits:** :ref:`Texture<class_texture>` **<** :ref:`Resource<class_resource>` **<** :ref:`Reference<class_reference>` **<** :ref:`Object<class_object>`
  8. **Category:** Core
  9. Brief Description
  10. -----------------
  11. Gradient filled texture.
  12. Member Variables
  13. ----------------
  14. .. _class_GradientTexture_gradient:
  15. - :ref:`Gradient<class_gradient>` **gradient** - The :ref:`Gradient<class_gradient>` that will be used to fill the texture.
  16. .. _class_GradientTexture_width:
  17. - :ref:`int<class_int>` **width** - The number of color samples that will be obtained from the :ref:`Gradient<class_gradient>`.
  18. Description
  19. -----------
  20. Uses a :ref:`Gradient<class_gradient>` to fill the texture data, the gradient will be filled from left to right using colors obtained from the gradient, this means that 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 :ref:`set_width<class_GradientTexture_set_width>`).