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


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.