aboutsummaryrefslogtreecommitdiffstats
path: root/cube_gl/effect.h
blob: 90319d13428b21b593b5ab800714bdbad76c9c8f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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