mirror of
https://github.com/overte-org/overte.git
synced 2025-08-11 07:52:55 +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() {
|
function update() {
|
||||||
value = Controller.getValue(controlId);
|
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();
|
canvas.requestPaint();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue