ColorRect

Inherits: Control < CanvasItem < Node < Object

Colored rectangle.

Description

Displays a colored rectangle.

Properties

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

Property Descriptions

Default Color( 1, 1, 1, 1 )
Setter set_frame_color(value)
Getter get_frame_color()

The fill color.

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