A Manipulate, sampled or pinned
On the web the slider is live. For print the first control is sampled on its step grid (six values, three to a row) and the rest are pinned into a caption; a pipe pins everything. Static -> "Pin", "Sample" or a count on the expression overrides the environment's policy.
source
<EnvironmentPreview expr="Manipulate(Plot(Sin(a * x) + b, (x, 0, 10)), (a, 1, 5), ((b, 1), 0, 3, 0.5))" />