W3cubDocs

/Godot 3.1

ColorRect

Inherits: Control < CanvasItem < Node < Object

Category: Core

Brief Description

Colored rectangle.

Properties

Color color

Description

Displays a colored rectangle.

Property Descriptions

Color color

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.

© 2014–2019 Juan Linietsky, Ariel Manzur, Godot Engine contributors
Licensed under the MIT License.
http://docs.godotengine.org/en/3.1/classes/class_colorrect.html