class_curvetexture.rst 1.6 KB

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