Outdated documentation
This documentation page refers to Godot
4.3,
and may be outdated or incorrect.
Additionally, this engine version is
no longer supported.
Check this page in the stable branch for the latest additions and corrections.
ColorRect
Inherits: Control < CanvasItem < Node < Object
A control that displays a solid color rectangle.
Description
Displays a rectangle filled with a solid color. If you need to display the border alone, consider using a Panel instead.
Tutorials
Properties
|
Property Descriptions
Color color = Color(1, 1, 1, 1) 🔗
The fill color of the rectangle.