class_curvexyztexture.rst 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. :github_url: hide
  2. .. DO NOT EDIT THIS FILE!!!
  3. .. Generated automatically from Godot engine sources.
  4. .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/master/doc/classes/CurveXYZTexture.xml.
  6. .. _class_CurveXYZTexture:
  7. CurveXYZTexture
  8. ===============
  9. **Inherits:** :ref:`Texture2D<class_Texture2D>` **<** :ref:`Texture<class_Texture>` **<** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  10. A 1D texture where the red, green, and blue color channels correspond to points on 3 curves.
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. A 1D texture where the red, green, and blue color channels correspond to points on 3 :ref:`Curve<class_Curve>` resources. Compared to using separate :ref:`CurveTexture<class_CurveTexture>`\ s, this further simplifies the task of saving curves as image files.
  15. If you only need to store one curve within a single texture, use :ref:`CurveTexture<class_CurveTexture>` instead. See also :ref:`GradientTexture1D<class_GradientTexture1D>` and :ref:`GradientTexture2D<class_GradientTexture2D>`.
  16. .. rst-class:: classref-reftable-group
  17. Properties
  18. ----------
  19. .. table::
  20. :widths: auto
  21. +---------------------------+--------------------------------------------------------+----------------------------------------------------------------------------------------+
  22. | :ref:`Curve<class_Curve>` | :ref:`curve_x<class_CurveXYZTexture_property_curve_x>` | |
  23. +---------------------------+--------------------------------------------------------+----------------------------------------------------------------------------------------+
  24. | :ref:`Curve<class_Curve>` | :ref:`curve_y<class_CurveXYZTexture_property_curve_y>` | |
  25. +---------------------------+--------------------------------------------------------+----------------------------------------------------------------------------------------+
  26. | :ref:`Curve<class_Curve>` | :ref:`curve_z<class_CurveXYZTexture_property_curve_z>` | |
  27. +---------------------------+--------------------------------------------------------+----------------------------------------------------------------------------------------+
  28. | :ref:`bool<class_bool>` | resource_local_to_scene | ``false`` (overrides :ref:`Resource<class_Resource_property_resource_local_to_scene>`) |
  29. +---------------------------+--------------------------------------------------------+----------------------------------------------------------------------------------------+
  30. | :ref:`int<class_int>` | :ref:`width<class_CurveXYZTexture_property_width>` | ``256`` |
  31. +---------------------------+--------------------------------------------------------+----------------------------------------------------------------------------------------+
  32. .. rst-class:: classref-section-separator
  33. ----
  34. .. rst-class:: classref-descriptions-group
  35. Property Descriptions
  36. ---------------------
  37. .. _class_CurveXYZTexture_property_curve_x:
  38. .. rst-class:: classref-property
  39. :ref:`Curve<class_Curve>` **curve_x** :ref:`🔗<class_CurveXYZTexture_property_curve_x>`
  40. .. rst-class:: classref-property-setget
  41. - |void| **set_curve_x**\ (\ value\: :ref:`Curve<class_Curve>`\ )
  42. - :ref:`Curve<class_Curve>` **get_curve_x**\ (\ )
  43. The :ref:`Curve<class_Curve>` that is rendered onto the texture's red channel.
  44. .. rst-class:: classref-item-separator
  45. ----
  46. .. _class_CurveXYZTexture_property_curve_y:
  47. .. rst-class:: classref-property
  48. :ref:`Curve<class_Curve>` **curve_y** :ref:`🔗<class_CurveXYZTexture_property_curve_y>`
  49. .. rst-class:: classref-property-setget
  50. - |void| **set_curve_y**\ (\ value\: :ref:`Curve<class_Curve>`\ )
  51. - :ref:`Curve<class_Curve>` **get_curve_y**\ (\ )
  52. The :ref:`Curve<class_Curve>` that is rendered onto the texture's green channel.
  53. .. rst-class:: classref-item-separator
  54. ----
  55. .. _class_CurveXYZTexture_property_curve_z:
  56. .. rst-class:: classref-property
  57. :ref:`Curve<class_Curve>` **curve_z** :ref:`🔗<class_CurveXYZTexture_property_curve_z>`
  58. .. rst-class:: classref-property-setget
  59. - |void| **set_curve_z**\ (\ value\: :ref:`Curve<class_Curve>`\ )
  60. - :ref:`Curve<class_Curve>` **get_curve_z**\ (\ )
  61. The :ref:`Curve<class_Curve>` that is rendered onto the texture's blue channel.
  62. .. rst-class:: classref-item-separator
  63. ----
  64. .. _class_CurveXYZTexture_property_width:
  65. .. rst-class:: classref-property
  66. :ref:`int<class_int>` **width** = ``256`` :ref:`🔗<class_CurveXYZTexture_property_width>`
  67. .. rst-class:: classref-property-setget
  68. - |void| **set_width**\ (\ value\: :ref:`int<class_int>`\ )
  69. - :ref:`int<class_int>` **get_width**\ (\ )
  70. 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.
  71. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  72. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  73. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  74. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  75. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  76. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  77. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
  78. .. |void| replace:: :abbr:`void (No return value.)`