Create Rectangle

Block Category: Signal Producer

Input Image Requirements: None

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

Get Position from Input Pins: 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