summaryrefslogtreecommitdiffstats
path: root/constants.py
diff options
context:
space:
mode:
authorRaymond Hogenson <rayhogenson@openmailbox.org>2016-09-27 22:58:31 -0400
committerRaymond Hogenson <rayhogenson@openmailbox.org>2016-09-27 22:58:31 -0400
commitfea99295c9ca99d3f3abd41b9bfaac91f4bda6dd (patch)
treebf8c763b9cda0cf985614048758c35398b184126 /constants.py
parentFish render (diff)
downloadbridge-fea99295c9ca99d3f3abd41b9bfaac91f4bda6dd.tar.zst
Split files and finish render code
Although it is unlikely that this code will actually run, it is split up rather nicely such that it should be maintainable into the future. Right now only one fish is supported, and it moves at some fixed rate across the bridge. This is fine for a demo, but the rendering process will need to be changed significantly before the end.
Diffstat (limited to 'constants.py')
-rw-r--r--constants.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/constants.py b/constants.py
new file mode 100644
index 0000000..162b3be
--- /dev/null
+++ b/constants.py
@@ -0,0 +1,10 @@
+"""Constants that may be tweaked in the future."""
+from __future__ import division, unicode_literals
+
+FRAME_RATE = 44
+MIN_VALUE = 0
+MAX_VALUE = 1
+MAX_TIME = 4
+MIN_TIME = 0.3
+MAX_HUE = 169 / 360
+MIN_HUE = 250 / 360