Change animation level coordinates to x->left-to-right, y->top-to-bottom, z->front...
[SugarCubes.git] / SugarCubes.pde
CommitLineData
49815cc0
MS
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
26LXPattern[] patterns(GLucose glucose) {
27 return new LXPattern[] {
2b6688e8
MS
28// new Swarm(glucose),
29// new SpaceTime(glucose),
30// new Blinders(glucose),
31// new CrossSections(glucose),
32// new CubeEQ(glucose),
33// new PianoKeyPattern(glucose),
49815cc0
MS
34
35 // Basic test patterns for reference, not art
36// new TestHuePattern(glucose),
37// new TestXPattern(glucose),
38// new TestYPattern(glucose),
2b6688e8 39 new TestZPattern(glucose),
49815cc0
MS
40 };
41}
42
43LXTransition[] transitions(GLucose glucose) {
44 return new LXTransition[] {
3f8be614 45 new DissolveTransition(lx),
49815cc0 46 new SwipeTransition(glucose),
3f8be614 47 new FadeTransition(lx),
49815cc0
MS
48 };
49}
50
51LXEffect[] effects(GLucose glucose) {
52 return new LXEffect[] {
53 new FlashEffect(lx),
3f8be614 54 new BoomEffect(glucose),
49815cc0
MS
55 new DesaturationEffect(lx),
56 };
57}
58