rocinantealpha

reference / interface

number

A box in a ui block for typing a number, with steppers to add and take away one, that gives its number kept between a low and a high: dots = number "dots" 1 1000. It starts at the low end, or at start, and keeps its value as the sketch reloads. A number typed outside the range is put inside it when the box lets go.

dots = 5ui [ dots = number "dots" 1 20 start 5 ]draw [  for i from 1 to dots [    circle at (i * 18) 150 radius 8  ]]
what it draws: the whole window, 400 by 300
What the example of number draws

How to write it

number text low high [start number] [at number number] [width number]

Gives a number.

Related