ColorRect

Inherits: Control < CanvasItem < Node < Object

Colored rectangle.

Description

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

Tutorials

Properties

ColorcolorColor( 1, 1, 1, 1 )

Property Descriptions

DefaultColor( 1, 1, 1, 1 )
Setterset_frame_color(value)
Getterget_frame_color()

The fill color.

  1. $ColorRect.color = Color(1, 0, 0, 1) # Set ColorRect's color to red.