class_colorrect.rst 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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 ColorRect.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_ColorRect:
  6. ColorRect
  7. =========
  8. **Inherits:** :ref:`Control<class_Control>` **<** :ref:`CanvasItem<class_CanvasItem>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
  9. **Category:** Core
  10. Brief Description
  11. -----------------
  12. Colored rectangle.
  13. Properties
  14. ----------
  15. +---------------------------+----------------------------------------------+
  16. | :ref:`Color<class_Color>` | :ref:`color<class_ColorRect_property_color>` |
  17. +---------------------------+----------------------------------------------+
  18. Description
  19. -----------
  20. Displays a colored rectangle.
  21. Property Descriptions
  22. ---------------------
  23. .. _class_ColorRect_property_color:
  24. - :ref:`Color<class_Color>` **color**
  25. +----------+------------------------+
  26. | *Setter* | set_frame_color(value) |
  27. +----------+------------------------+
  28. | *Getter* | get_frame_color() |
  29. +----------+------------------------+
  30. The fill color.
  31. ::
  32. $ColorRect.color = Color(1, 0, 0, 1) # Set ColorRect's color to red.