rocinantealpha

reference / interface

panel

A titled group in a ui block that folds up when its title is clicked, and starts open: panel "shape" [ ... ]. The widgets inside are made only while it is open, and a widget inside keeps its own value apart from one with the same text in another panel.

dot = 50ui [  panel "dot" [    dot = slider "size" 10 120 start 50  ]]draw [ circle at 300 160 radius dot ]
what it draws: the whole window, 400 by 300
What the example of panel draws

How to write it

panel text [ ... ] [at number number] [width number]

Related