class_colorrect.rst 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the ColorRect.xml source instead.
  3. .. The source is found in doc/classes or modules/<name>/doc_classes.
  4. .. _class_ColorRect:
  5. ColorRect
  6. =========
  7. **Inherits:** :ref:`Control<class_Control>` **<** :ref:`CanvasItem<class_CanvasItem>` **<** :ref:`Node<class_Node>` **<** :ref:`Object<class_Object>`
  8. **Category:** Core
  9. Brief Description
  10. -----------------
  11. Colored rectangle.
  12. Properties
  13. ----------
  14. +---------------------------+-------------------------------------+
  15. | :ref:`Color<class_Color>` | :ref:`color<class_ColorRect_color>` |
  16. +---------------------------+-------------------------------------+
  17. Description
  18. -----------
  19. Displays a colored rectangle.
  20. Property Descriptions
  21. ---------------------
  22. .. _class_ColorRect_color:
  23. - :ref:`Color<class_Color>` **color**
  24. +----------+------------------------+
  25. | *Setter* | set_frame_color(value) |
  26. +----------+------------------------+
  27. | *Getter* | get_frame_color() |
  28. +----------+------------------------+
  29. The fill color.
  30. ::
  31. $ColorRect.color = Color(1, 0, 0, 1) # Set ColorRect's color to red.