Parameter
parameterBlock elementGraphAliases:param
A named quantity the reader can vary with a slider. Inside a `canvas.graph` it drives every expression that mentions its letter — a curve of `a * x^2` bends as `a` moves. The body is what the parameter is called in front of a reader; without one it shows as its letter.
Attributes
varRequiredImplicit
single-charname
hidden
booleanDefaultfalse
lock
booleanDefaultfalse
Derived attributes
Computed while the element renders — read one with #id.name in attribute position or !value:#id.name() in prose, never set.
valueDerived
Allowed content
Body { }Inline instructional text and expressions
Allowed in
Examples
parameter{steepness}(var: a; range: [0, 4]; step: 0.25; default: 2)
curve(f: a * x^2; domain: [-3, 3])parameter{
Move the slider to change a.
}(
var: a
range: [-5, 5]
step: 0.5
)