Create Rectangle

Block Category: Signal Producer

Input Image Format

Input Image Requirements: None

Description: The Create Rectangle block creates a rectangle with customizable geometry, including size, color, and position.

Use input connector values to specify rectangle position: Uses the block inputs to get the x,y values for the position of the rectangle.

Rectangle Geometry

Height: Indicates the height of the rectangle in pixels.

Left/Top: Indicates the top left corner of the rectangle in pixels.

Width: Indicates the width of the rectangle in pixels.

Example

In this example, a pink rectangle moves across the cat image. The rectangle receives its positional values from the sinusoid and triangle wave inputs.

CreateRectangleExample