A Knob with 'centered' orientation:
<body>
<div id="knobContainer2"></div>
<div id="value2">0</div>
<script>
var parameters2 = {
containerId: 'knobContainer2',
knobId: 'knob2',
orientation: 'centered',
max: 100,
min: -100,
xAxis: false,
onLeftTurn: function(value) {
document.getElementById('value2').innerHTML = value;
},
onRightTurn: function() {
document.getElementById('value2').innerHTML = value;
},
onReset: function() {
document.getElementById('value2').innerHTML = value;
}
var knob2 = new Knob(parameters2);
</script>
</body>
This knob goes from -100 to 100, and our defaultValue is 0. This time, our xAxis property is set to false, which means to control the knob,
we now have to move the mouse up or down instead of left or right. Our left, right, and reset functions all output the knob's 'value' to the
value div below: