W3cubDocs

/Godot 3.0

ColorRect

Inherits: Control < CanvasItem < Node < Object

Category: Core

Brief Description

Colored rect for canvas.

Member Variables

Color color - The color to fill the ColorRect.

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

Description

An object that is represented on the canvas as a rect with color. Color is used to set or get color info for the rect.

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