summaryrefslogtreecommitdiffstats
path: root/generate.c
diff options
context:
space:
mode:
Diffstat (limited to 'generate.c')
-rw-r--r--generate.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/generate.c b/generate.c
index 6b7e925..9a4eac8 100644
--- a/generate.c
+++ b/generate.c
@@ -11,6 +11,7 @@
#include "generate.h"
#include "color.h"
+#include "hilbert.h"
#include "util.h"
#include <stdlib.h>
@@ -38,6 +39,10 @@ generate_colors(const options_t *options)
}
break;
+ case MODE_HILBERT:
+ hilbert_point(3, grb_bits, n, grb);
+ break;
+
default:
for (unsigned int j = 0; j < 3; ++j) {
grb[j] = n & ((1 << grb_bits[j]) - 1);