class_curvexyztexture.rst 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  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 texture that shows 3 different curves (stored on the red, green and blue color channels).
  11. Description
  12. -----------
  13. Renders 3 given :ref:`Curve<class_Curve>`\ s provided to it, on the red, green and blue channels respectively. Compared to using separate :ref:`CurveTexture<class_CurveTexture>`\ s, this further simplifies the task of drawing curves and/or saving them as image files.
  14. 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>`.
  15. Properties
  16. ----------
  17. +---------------------------+--------------------------------------------------------+---------+
  18. | :ref:`Curve<class_Curve>` | :ref:`curve_x<class_CurveXYZTexture_property_curve_x>` | |
  19. +---------------------------+--------------------------------------------------------+---------+
  20. | :ref:`Curve<class_Curve>` | :ref:`curve_y<class_CurveXYZTexture_property_curve_y>` | |
  21. +---------------------------+--------------------------------------------------------+---------+
  22. | :ref:`Curve<class_Curve>` | :ref:`curve_z<class_CurveXYZTexture_property_curve_z>` | |
  23. +---------------------------+--------------------------------------------------------+---------+
  24. | :ref:`int<class_int>` | :ref:`width<class_CurveXYZTexture_property_width>` | ``256`` |
  25. +---------------------------+--------------------------------------------------------+---------+
  26. Property Descriptions
  27. ---------------------
  28. .. _class_CurveXYZTexture_property_curve_x:
  29. - :ref:`Curve<class_Curve>` **curve_x**
  30. +----------+--------------------+
  31. | *Setter* | set_curve_x(value) |
  32. +----------+--------------------+
  33. | *Getter* | get_curve_x() |
  34. +----------+--------------------+
  35. The :ref:`Curve<class_Curve>` that is rendered onto the texture's red channel.
  36. ----
  37. .. _class_CurveXYZTexture_property_curve_y:
  38. - :ref:`Curve<class_Curve>` **curve_y**
  39. +----------+--------------------+
  40. | *Setter* | set_curve_y(value) |
  41. +----------+--------------------+
  42. | *Getter* | get_curve_y() |
  43. +----------+--------------------+
  44. The :ref:`Curve<class_Curve>` that is rendered onto the texture's green channel.
  45. ----
  46. .. _class_CurveXYZTexture_property_curve_z:
  47. - :ref:`Curve<class_Curve>` **curve_z**
  48. +----------+--------------------+
  49. | *Setter* | set_curve_z(value) |
  50. +----------+--------------------+
  51. | *Getter* | get_curve_z() |
  52. +----------+--------------------+
  53. The :ref:`Curve<class_Curve>` that is rendered onto the texture's blue channel.
  54. ----
  55. .. _class_CurveXYZTexture_property_width:
  56. - :ref:`int<class_int>` **width**
  57. +-----------+------------------+
  58. | *Default* | ``256`` |
  59. +-----------+------------------+
  60. | *Setter* | set_width(value) |
  61. +-----------+------------------+
  62. | *Getter* | get_width() |
  63. +-----------+------------------+
  64. 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.
  65. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  66. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  67. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  68. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  69. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  70. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`