Attempting to fix log graphs

This commit is contained in:
Brad Davis 2015-10-22 15:49:58 -07:00
parent 471f43899d
commit 8c163a52e9

View file

@ -23,6 +23,11 @@ Rectangle {
function update() {
value = Controller.getValue(controlId);
if (log) {
var log = Math.log(10) / Math.log(Math.abs(value));
var sign = Math.sign(value);
value = log * sign;
}
canvas.requestPaint();
}