Knob displays a value from 0.0 to 1.0 in rotary fashion, and allows to control it with either circular or linear mouse motion.
It also displays the deviation of the value from either 0.0 or 0.5, which you can choose using -centered.
To switch between the mouse interaction modes, use -mode.
The default -mode for newly created Knobs.
The displayed value.
A Number in the range of 0.0 to 1.0.
Sets the value and triggers -action.
Increments the value by -keystep multiplied by the argument.
Decrements the value by -keystep multiplied by the argument.
The way value is controlled with respect to mouse movement after clicking on the view:
\round- value follows circular movement
\horiz- value follows linear movement in horizontal direction
\vert- value follows linear movement in vertical direction
One of the symbols listed above.
The amount by which the value is incremented/decremented when pressing a relevant key.
Defaults to 0.01;
The amount by which the value is incremented/decremented using the mouse in 'horizontal' and 'vertical' modes.
Whether the deviation of value will be displayed in relation to 0.0 or 0.5 (e.g. as in a panning controller);
The colors used by the Knob to draw the following elements:
An Array of four Colors in the order listed above.
The action object evaluated whenever the user interacts with the Knob using the mouse or the keyboard.
Implements the default effects of key presses as follows:
True if the current drag data is a Number.
Sets -valueAction to the current drag data.
Center mode is useful for pan or eq gain control etc.
-step only affects the 'horiz' and 'vert' modes: