@EditableNumber
- Description
Mark float variables with this annotation in order to add them to Tinker panel. Tinker makes assumptions about the best type of control used to manipulate the variable depending on the constraints specified. (See Parameters).
As the Processing grammar does not yet recognize Annotations, this feature is only available to programmers using a separate IDE such as Eclipse.
- Syntax
@EditableNumber public float noConstraints; @EditableNumber(min=1) public float hasLowerBound; @EditableNumber(min=100) public float hasUpperBound; @EditableNumber(min=0, min=100) public float becomesSlider; @EditableNumber(options={1, 2, 4, 8}) public float becomesRadio;- Parameters
- min
- float: minimum value allowed
- max
- float: maximum value allowed
- increment
- float: snaps values
- options
- float[]: an array of allowed values. Ignores all other constraints.
- Returns
- None
- Usage
- Web & Applications
- Related
No Comments
You must be logged in to post a comment.