summaryrefslogtreecommitdiff
path: root/src/til.c
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2022-09-04 23:32:55 -0700
committerVito Caputo <vcaputo@pengaru.com>2022-09-04 23:44:33 -0700
commitb4c9935b5d167ca2ef69b5a6a81ae207f462b45c (patch)
treeda526ecfbd90215d70420d2dce75d5eed0adfb9b /src/til.c
parentb5a2667f6c94d5a275251bf6cc359480100a651c (diff)
modules/strobe: add rudimentary strobe light module
After reading about the Dreamachine[0], I wanted to experience this phenomenon. The javascript-based web implementations struggled to hold a steady 10Hz rate and would flicker like crazy, so here we are. Only setting right now is period=float_seconds, defaults to .1 for 10Hz. One limitation in the current implementation is when the frame rate can't keep up with the period the strobe will just stick on without ever going off, because the period will always be expired. There should probably be a setting to force turning off for at least one frame when it can't keep up. [0] https://en.wikipedia.org/wiki/Dreamachine
Diffstat (limited to 'src/til.c')
-rw-r--r--src/til.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/til.c b/src/til.c
index 151f690..f7e3225 100644
--- a/src/til.c
+++ b/src/til.c
@@ -44,6 +44,7 @@ extern til_module_t snow_module;
extern til_module_t sparkler_module;
extern til_module_t spiro_module;
extern til_module_t stars_module;
+extern til_module_t strobe_module;
extern til_module_t submit_module;
extern til_module_t swab_module;
extern til_module_t swarm_module;
@@ -70,6 +71,7 @@ static const til_module_t *modules[] = {
&sparkler_module,
&spiro_module,
&stars_module,
+ &strobe_module,
&submit_module,
&swab_module,
&swarm_module,
© All Rights Reserved