triangle
A triangle 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
Distance from the centre to each vertex. The centre sits a quarter of that below the midpoint, so the triangle reads as balanced.
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
triangle(x: 0; y: 0; size: 2)triangle(x: -2; y: 1; size: 1; colour: orange)