class_colorrect.rst 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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_property_color>` | Color( 1, 1, 1, 1 ) |
  16. +---------------------------+----------------------------------------------+---------------------+
  17. Description
  18. -----------
  19. Displays a colored rectangle.
  20. Property Descriptions
  21. ---------------------
  22. .. _class_ColorRect_property_color:
  23. - :ref:`Color<class_Color>` **color**
  24. +-----------+------------------------+
  25. | *Default* | Color( 1, 1, 1, 1 ) |
  26. +-----------+------------------------+
  27. | *Setter* | set_frame_color(value) |
  28. +-----------+------------------------+
  29. | *Getter* | get_frame_color() |
  30. +-----------+------------------------+
  31. The fill color.
  32. ::
  33. $ColorRect.color = Color(1, 0, 0, 1) # Set ColorRect's color to red.