summaryrefslogtreecommitdiff
path: root/mechanics.py
diff options
context:
space:
mode:
authorFlorian Jung <flo@windfisch.org>2015-08-28 00:29:04 +0200
committerFlorian Jung <flo@windfisch.org>2015-08-28 00:29:04 +0200
commitf13b8a44441206a4f761002ed3adabd129601ba1 (patch)
tree83543b16f1982441f669391667a5e78261b87842 /mechanics.py
parent38f85429d76bb220580283c638036cbbf67df4df (diff)
use new zoom formula
Diffstat (limited to 'mechanics.py')
-rw-r--r--mechanics.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/mechanics.py b/mechanics.py
index d242493..1f9d5cc 100644
--- a/mechanics.py
+++ b/mechanics.py
@@ -1,3 +1,6 @@
def speed(size):
return 86 / (size**0.45)
+def viewport_diag(sizesum):
+ return 370 * max(sizesum,70)**0.431776
+