rectangle
Creates a rectangle.
Syntax
-
rectangle(a, w[, h])
-
a
is a two-dimensional real vector -
w
is a positive real number -
h
is a positive real number
-
Description
rectangle(a, w, h)
creates a rectangle with its top-left corner at a
having width w
and height h
. If omitted, h
defaults to w
, thus producing a square.
The object is shown in the current diagram and a reference to the object is returned.
The AdjustVisual
function can be used to adjust the appearance of the rectangle. See Visual settings for a list of applicable settings.