aboutsummaryrefslogtreecommitdiffstats
path: root/cube_gl/effect.h
diff options
context:
space:
mode:
Diffstat (limited to 'cube_gl/effect.h')
-rw-r--r--cube_gl/effect.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/cube_gl/effect.h b/cube_gl/effect.h
new file mode 100644
index 0000000..90319d1
--- /dev/null
+++ b/cube_gl/effect.h
@@ -0,0 +1,26 @@
+#ifndef __EFFECT_H__
+#define __EFFECT_H__
+
+const int TOTAL_EFFECTS = 27;
+
+extern unsigned char leds[8][8];
+extern volatile bool led_change;
+
+bool get_led(unsigned char x, unsigned char y, unsigned char z);
+void set_led(unsigned char x, unsigned char y, unsigned char z, bool on = true);
+void clear_led();
+
+void rain_effect(int iterations);
+
+void planboing(int plane, int speed);
+
+void sendvoxels_random_z_effect(int maxiters,
+ int delay, /* speed of movement */
+ int wait); /* delay between 2 movement */
+
+void box_shrink_grow_effect(int iterations, int rotation, int flip, int delay);
+void effect_box_woopwoop (int delay, int grow);
+
+void launch_effect(int effect);
+
+#endif