Contour
contourBlock elementGraph
A two-variable expression drawn as its level sets — the landscape picture a 2D pane can give a surface. The expression is in x AND y (`(x - 2)^2 + (y - 3)^2`), grid-sampled over the visible window and traced where it takes equal values, so panning explores the surface and a parameter in the expression moves the landscape live. `y` is the vertical axis here, not a parameter: only the letters beyond x and y get footer sliders.
Attributes
expressionRequiredImplicit
parametised-surface-expressionlevels
parametised-numberDefault12
Also written: values, level-valuesThe exact level values, overriding `levels:` — for the stories even spacing tells wrongly (a quadratic bowl wants 1, 4, 9, 16). Entries are parametised: `at: k, 2 * k, 4 * k` rides a parameter slider.
colour
surface-colourDefaultmulticolour
hidden
booleanDefaultfalse
Draw order within the pane.
Derived attributes
Computed while the element renders — read one with #id.name in attribute position or !value:#id.name() in prose, never set.
minDerived
maxDerived
Allowed in
Examples
contour(expression: (x - 2)^2 + (y - 3)^2; levels: 8)contour(expression: x^2 - y^2; at: -4, -1, 0, 1, 4; colour: teal)contour(expression: (x - a)^2 + (y - b)^2; levels: 10; opacity: 0.7)contour(expression: x^2 + y^2; at: k, 2 * k, 4 * k, 8 * k)contour(expression: sin(x) * cos(y); levels: 14; colour: temperature)