mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 18:23:54 +02:00
Attempting to fix log graphs
This commit is contained in:
parent
471f43899d
commit
8c163a52e9
1 changed files with 5 additions and 0 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue