polygon
A closed shape whose outline is its x: and y: vertex series, paired by position. The named shapes take a position and a size; a polygon takes its outline directly.
Only withplane
#Attributes
On any plane
Also written: atLong-format data: one row per x per period, this naming the period column, sliced at the environment's
parameter.time.colour
Also written: colorColour.
Default
tealDraws the outline dashed. What it is for is the shape that is not there: where a figure was before it moved, a region a constraint rules out, a construction that explains the drawing without being part of it.
Default
falseinterpolate
linear for straight sides, bezier for a closed round outline, on the same midpoint handles as the line’s. No step — a staircase is a reading against x, and a closed outline is not one.Default
linearText 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
Only withplane
On the argand plane, the readings as complex numbers: written out (
1 + i, 2 - i, -3i, a bare number a real), or a column of complex literals bound whole (#roots.z). Instead of re/im.On the argand plane, the readings' real parts, one per reading — numbers written out or a column — paired with
im by position.#Allowed in
#Examples
polygon(x: 0, 2, 1; y: 0, 0, 2)polygon(x: -1, 1, 0; y: -1, -1, 1; fill: false; colour: teal)