ColorRect

Inherits: Control < CanvasItem < Node < Object

Rectángulo coloreado.

Descripción

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

Tutoriales

Propiedades

Color

color

Color( 1, 1, 1, 1 )

Descripciones de Propiedades

Default

Color( 1, 1, 1, 1 )

Setter

set_frame_color(value)

Getter

get_frame_color()

El color de relleno.

$ColorRect.color = Color(1, 0, 0, 1) # Establece el color de ColorRect a rojo.