rectangle
A rectangle centred at (x, y), scaled by size. One of seven shape marks that differ only in the outline drawn.
Only withplane
#Attributes
On any plane
Half the width. The height is fixed at 0.6 of the width, so the rectangle is 2×size wide and 1.2×size tall.
Default
1colour
Also written: colorColour.
Default
purpleDraws the outline dashed — the shape that is not there: a construction, a ghost of a previous position, a region ruled out. As
polygon's and segment's.Default
falseText drawn beside the element — rich text, so
$maths$ and inline formatting render. Fades and draws with the element.Declared but not drawn. Animatable —
hidden: true !cue.to{false}(at: 2) reveals it — and unlike a cue, a hidden element still frames the plot, so the axes do not jump when it appears.Default
falseAlso written: lockedKeeps the reader from editing this element on an
editable: graph. Nothing at all on a graph that is not editable.Default
falseOnly withplane
On the argand plane, the position as one complex number — a complex expression:
3 + 2i, (3 + 2i)^2, sqrt(13) * e^(i * a), with i the unit and parameters read as complex. Instead of re/im.#Allowed in
#Examples
rectangle(x: 0; y: 0; size: 2)rectangle(x: 2; y: 2; size: 1.4; fill: false)