Skip to content

ColorRect

Inherits: Control < CanvasItem < Entity < Object

A control that displays a solid color rectangle.

Displays a rectangle filled with a solid color. If you need to display the border alone, consider using a Panel instead.

Type Name Default
Color color Color(1, 1, 1, 1)

color

Color color = Color(1, 1, 1, 1)

The fill color of the rectangle.