ColorRect

Inherits: Control < CanvasItem < Node < Object

Colored rectangle.

Description

Displays a colored rectangle.

Properties

ColorColorColor( 1, 1, 1, 1 )

Property Descriptions

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

The fill color.

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

Doc ID missing

Disclaimer: This page has been automaticaly and directly extracted from the official Godot Docs website, the 1970-01-01 at 00:00:00. It’s the English Stable version because it’s what most Godot users should use. The Copyright owners are Juan Linietsky, Ariel Manzur and the Godot community. CC-BY 3.0. Thanks for your patience and generosity.