RectangleOptions

Options for creating a rectangle shape.

RectangleOptions interface

Options for creating a rectangle shape.

Signature:

interface RectangleOptions

Properties

Property

Modifiers

Type

Description

position?

Vector

(Optional) Initial position of the rectangle

roundness?

number

(Optional) Initial corner roundness (0 = sharp corners)

size?

Size

(Optional) Initial size of the rectangle

Last updated: August 5, 2026 at 11:47 AMEdit this page