Guide · 06 of 09
Controls
Controls are the interactive widgets the learner uses. They write to state variables, which re-evaluates all object expressions.
slider#
A horizontal slider bound to a numeric state variable. min/max override the param's range.
slider <bind> { [label: "text"], [min: <n>], [max: <n>], [step: <n>] }
Example
move the point0
-33
stepper#
A − / + stepper bound to a numeric state variable.
stepper <bind> { [label: "text"], [step: <n>] }
Example
rectangles
4
picker#
A row of pill buttons bound to a choice state variable, one per option.
picker <bind> { [label: "text"] }
Example
pick a shape