:github_url: hide .. Generated automatically by doc/tools/make_rst.py in Godot's source tree. .. DO NOT EDIT THIS FILE, but the CurveTexture.xml source instead. .. The source is found in doc/classes or modules//doc_classes. .. _class_CurveTexture: CurveTexture ============ **Inherits:** :ref:`Texture2D` **<** :ref:`Texture` **<** :ref:`Resource` **<** :ref:`RefCounted` **<** :ref:`Object` A texture that shows a curve. Description ----------- Renders a given :ref:`Curve` provided to it. Simplifies the task of drawing curves and/or saving them as image files. Properties ---------- +---------------------------------------------------+---------------------------------------------------------------+---------+ | :ref:`Curve` | :ref:`curve` | | +---------------------------------------------------+---------------------------------------------------------------+---------+ | :ref:`TextureMode` | :ref:`texture_mode` | ``0`` | +---------------------------------------------------+---------------------------------------------------------------+---------+ | :ref:`int` | :ref:`width` | ``256`` | +---------------------------------------------------+---------------------------------------------------------------+---------+ Enumerations ------------ .. _enum_CurveTexture_TextureMode: .. _class_CurveTexture_constant_TEXTURE_MODE_RGB: .. _class_CurveTexture_constant_TEXTURE_MODE_RED: enum **TextureMode**: - **TEXTURE_MODE_RGB** = **0** - **TEXTURE_MODE_RED** = **1** Property Descriptions --------------------- .. _class_CurveTexture_property_curve: - :ref:`Curve` **curve** +----------+------------------+ | *Setter* | set_curve(value) | +----------+------------------+ | *Getter* | get_curve() | +----------+------------------+ The ``curve`` rendered onto the texture. ---- .. _class_CurveTexture_property_texture_mode: - :ref:`TextureMode` **texture_mode** +-----------+-------------------------+ | *Default* | ``0`` | +-----------+-------------------------+ | *Setter* | set_texture_mode(value) | +-----------+-------------------------+ | *Getter* | get_texture_mode() | +-----------+-------------------------+ ---- .. _class_CurveTexture_property_width: - :ref:`int` **width** +-----------+------------------+ | *Default* | ``256`` | +-----------+------------------+ | *Setter* | set_width(value) | +-----------+------------------+ | *Getter* | get_width() | +-----------+------------------+ The width of the texture. .. |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.)`