class_colorrect.rst 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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>` | Color( 1, 1, 1, 1 ) |
  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. | *Default* | Color( 1, 1, 1, 1 ) |
  27. +-----------+------------------------+
  28. | *Setter* | set_frame_color(value) |
  29. +-----------+------------------------+
  30. | *Getter* | get_frame_color() |
  31. +-----------+------------------------+
  32. The fill color.
  33. ::
  34. $ColorRect.color = Color(1, 0, 0, 1) # Set ColorRect's color to red.