Rectangle
Rectangle input properties for Script Engine. Generates a solid-coloured rectangle as a video source. The size and the fill colour (with alpha) are fully controllable, making it useful as a coloured backdrop, a flat fill behind keyed graphics, a placeholder during layout, or a building block for simple shape compositions.
| Property | Type | Access | Description |
|---|---|---|---|
ShowAdvancedOptions |
bool |
get/set |
Show or hide the input's advanced settings in the editor UI. [default=false]. |
Width |
int |
get/set |
Width of the rectangle, in pixels. [min=1, max=8192, default=400]. |
Height |
int |
get/set |
Height of the rectangle, in pixels. [min=1, max=8192, default=400]. |
Red |
int |
get/set |
Red channel. [min=0, max=255, default=255]. |
Green |
int |
get/set |
Green channel. [min=0, max=255, default=255]. |
Blue |
int |
get/set |
Blue channel. [min=0, max=255, default=255]. |
Alpha |
int |
get/set |
Alpha channel. [min=0, max=255, default=255]. |
ColorPicker |
AdvancedColorPicker |
get/set |
Combined colour picker for the rectangle's fill colour. Lets you pick the colour from a colour wheel / palette in the editor. Internally updates the Red, Green, Blue, and Alpha channel values together. Scripts can read or set those channels directly if they need numeric control. |
Inherits from: AbstractInput, AbstractAudioProcessing, AbstractAudioMetering.
See also: Rectangle in Inputs — user-facing introduction, screenshots, and section summaries.