summaryrefslogtreecommitdiff
path: root/src/til.c
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2022-04-29 08:03:23 -0700
committerVito Caputo <vcaputo@pengaru.com>2022-04-29 13:30:02 -0700
commitaa77b6b96694496c46a9f99fa23ba2edbf973aa2 (patch)
tree388ba7b2f08b6f7a726cd41f8cc4f0dc1b048305 /src/til.c
parent34811cbe4bf6da3e6e22860890fca4c9fff71252 (diff)
modules/voronoi: voronoi diagram module
This adds a voronoi diagram module, which when used as an overlay produces a mosaic effect. Some settings: cells=N number of voronoi cells randomize={on,off} randomizes the cell locations every frame dirty={on,off} uses a faster sloppy/dithery-looking method Some TODO items: - use a more space efficient representation of the distance buffer, maybe use uint16_t relative offsets into the cells rather than pointers - capping their quantity to 64KiB - anti-alias edges between cells
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 d7281ee..5d375c3 100644
--- a/src/til.c
+++ b/src/til.c
@@ -44,6 +44,7 @@ extern til_module_t stars_module;
extern til_module_t submit_module;
extern til_module_t swab_module;
extern til_module_t swarm_module;
+extern til_module_t voronoi_module;
static const til_module_t *modules[] = {
&blinds_module,
@@ -67,6 +68,7 @@ static const til_module_t *modules[] = {
&submit_module,
&swab_module,
&swarm_module,
+ &voronoi_module,
};
© All Rights Reserved