Colored rect for canvas.
    public class ColorRect : Control

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.

Inheritance Chain

Constructors

    public ColorRect()

Properties

    public Color Color { get; set; }

The color to fill the ColorRect.

[codeblock]

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

[/codeblock]

Methods

    public Color GetFrameColor()

Getter for Color

    public void SetFrameColor(Color color)

Setter for Color

Tags: