:github_url: hide .. DO NOT EDIT THIS FILE!!! .. Generated automatically from Godot engine sources. .. Generator: https://github.com/godotengine/godot/tree/4.0/doc/tools/make_rst.py. .. XML source: https://github.com/godotengine/godot/tree/4.0/doc/classes/CurveXYZTexture.xml. .. _class_CurveXYZTexture: CurveXYZTexture =============== **Inherits:** :ref:`Texture2D` **<** :ref:`Texture` **<** :ref:`Resource` **<** :ref:`RefCounted` **<** :ref:`Object` A texture that shows 3 different curves (stored on the red, green and blue color channels). .. rst-class:: classref-introduction-group Description ----------- Renders 3 given :ref:`Curve`\ s provided to it, on the red, green and blue channels respectively. Compared to using separate :ref:`CurveTexture`\ s, this further simplifies the task of drawing curves and/or saving them as image files. If you only need to store one curve within a single texture, use :ref:`CurveTexture` instead. See also :ref:`GradientTexture1D` and :ref:`GradientTexture2D`. .. rst-class:: classref-reftable-group Properties ---------- .. table:: :widths: auto +---------------------------+--------------------------------------------------------+----------------------------------------------------------------------------------------+ | :ref:`Curve` | :ref:`curve_x` | | +---------------------------+--------------------------------------------------------+----------------------------------------------------------------------------------------+ | :ref:`Curve` | :ref:`curve_y` | | +---------------------------+--------------------------------------------------------+----------------------------------------------------------------------------------------+ | :ref:`Curve` | :ref:`curve_z` | | +---------------------------+--------------------------------------------------------+----------------------------------------------------------------------------------------+ | :ref:`bool` | resource_local_to_scene | ``false`` (overrides :ref:`Resource`) | +---------------------------+--------------------------------------------------------+----------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`width` | ``256`` | +---------------------------+--------------------------------------------------------+----------------------------------------------------------------------------------------+ .. rst-class:: classref-section-separator ---- .. rst-class:: classref-descriptions-group Property Descriptions --------------------- .. _class_CurveXYZTexture_property_curve_x: .. rst-class:: classref-property :ref:`Curve` **curve_x** .. rst-class:: classref-property-setget - void **set_curve_x** **(** :ref:`Curve` value **)** - :ref:`Curve` **get_curve_x** **(** **)** The :ref:`Curve` that is rendered onto the texture's red channel. .. rst-class:: classref-item-separator ---- .. _class_CurveXYZTexture_property_curve_y: .. rst-class:: classref-property :ref:`Curve` **curve_y** .. rst-class:: classref-property-setget - void **set_curve_y** **(** :ref:`Curve` value **)** - :ref:`Curve` **get_curve_y** **(** **)** The :ref:`Curve` that is rendered onto the texture's green channel. .. rst-class:: classref-item-separator ---- .. _class_CurveXYZTexture_property_curve_z: .. rst-class:: classref-property :ref:`Curve` **curve_z** .. rst-class:: classref-property-setget - void **set_curve_z** **(** :ref:`Curve` value **)** - :ref:`Curve` **get_curve_z** **(** **)** The :ref:`Curve` that is rendered onto the texture's blue channel. .. rst-class:: classref-item-separator ---- .. _class_CurveXYZTexture_property_width: .. rst-class:: classref-property :ref:`int` **width** = ``256`` .. rst-class:: classref-property-setget - void **set_width** **(** :ref:`int` value **)** - :ref:`int` **get_width** **(** **)** 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. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)` .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)` .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)` .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)` .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)` .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`