class_curvetexture.rst 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. :github_url: hide
  2. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  3. .. DO NOT EDIT THIS FILE, but the CurveTexture.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_CurveTexture:
  6. CurveTexture
  7. ============
  8. **Inherits:** :ref:`Texture<class_Texture>` **<** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
  9. **Category:** Core
  10. Brief Description
  11. -----------------
  12. A texture that shows a curve.
  13. Properties
  14. ----------
  15. +---------------------------+-------------------------------------------------+
  16. | :ref:`Curve<class_Curve>` | :ref:`curve<class_CurveTexture_property_curve>` |
  17. +---------------------------+-------------------------------------------------+
  18. | :ref:`int<class_int>` | :ref:`width<class_CurveTexture_property_width>` |
  19. +---------------------------+-------------------------------------------------+
  20. Description
  21. -----------
  22. Renders a given :ref:`Curve<class_Curve>` provided to it. Simplifies the task of drawing curves and/or saving them as image files.
  23. Property Descriptions
  24. ---------------------
  25. .. _class_CurveTexture_property_curve:
  26. - :ref:`Curve<class_Curve>` **curve**
  27. +----------+------------------+
  28. | *Setter* | set_curve(value) |
  29. +----------+------------------+
  30. | *Getter* | get_curve() |
  31. +----------+------------------+
  32. The ``curve`` rendered onto the texture.
  33. ----
  34. .. _class_CurveTexture_property_width:
  35. - :ref:`int<class_int>` **width**
  36. +----------+------------------+
  37. | *Setter* | set_width(value) |
  38. +----------+------------------+
  39. | *Getter* | get_width() |
  40. +----------+------------------+
  41. The width of the texture.