Attention: Here be dragons

This is the latest (unstable) version of this documentation, which may document features not available in or compatible with released stable versions of Godot.

ColorRect

Inherits: Control < CanvasItem < Node < Object

A control that displays a solid color rectangle.

Description

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

Tutorials

Properties

Color

color

Color(1, 1, 1, 1)


Property Descriptions

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

  • void set_color ( Color value )

  • Color get_color ( )

The fill color of the rectangle.