SugarCubes sketch initial code dump
[SugarCubes.git] / SugarCubes.pde
1 /**
2 * +-+-+-+-+-+ +-+-+-+-+-+
3 * / /| |\ \
4 * / / + + \ \
5 * +-+-+-+-+-+ | +-+-+-+-+ | +-+-+-+-+-+
6 * | | + / \ + | |
7 * + THE + / / \ \ + CUBES +
8 * | |/ +-+-+-+-+-+-+-+ \| |
9 * +-+-+-+-+-+ | | +-+-+-+-+-+
10 * + +
11 * | SUGAR |
12 * + +
13 * | |
14 * +-+-+-+-+-+-+-+
15 *
16 * Welcome to the Sugar Cubes! This Processing sketch is a fun place to build
17 * animations, effects, and interactions for the platform. Most of the icky
18 * code guts are embedded in the GLucose library extension. If you're an
19 * artist, you shouldn't need to worry about any of that.
20 *
21 * Below, you will find definitions of the Patterns, Effects, and Interactions.
22 * If you're an artist, create a new tab in the Processing environment with
23 * your name. Implement your classes there, and add them to the list below.
24 */
25
26 LXPattern[] patterns(GLucose glucose) {
27 return new LXPattern[] {
28 new SpaceTime(glucose),
29 new Swarm(glucose),
30 new CubeEQ(glucose),
31
32 // Basic test patterns for reference, not art
33 // new TestHuePattern(glucose),
34 // new TestXPattern(glucose),
35 // new TestYPattern(glucose),
36 // new TestZPattern(glucose),
37 };
38 }
39
40 LXTransition[] transitions(GLucose glucose) {
41 return new LXTransition[] {
42 new DissolveTransition(lx).setDuration(3000),
43 new SwipeTransition(glucose),
44 new FadeTransition(lx).setDuration(2000),
45 };
46 }
47
48 LXEffect[] effects(GLucose glucose) {
49 return new LXEffect[] {
50 new FlashEffect(lx),
51 new DesaturationEffect(lx),
52 };
53 }
54