Changed mapping, added cubes, unbroke Toby's fire anim by commenting out
[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 ShiftingPlane(glucose),
29 new AskewPlanes(glucose),
30 new Swarm(glucose),
31 new SpaceTime(glucose),
32 new Blinders(glucose),
33 new CrossSections(glucose),
34 new Psychedelia(glucose),
35 new CubeEQ(glucose),
36 new PianoKeyPattern(glucose),
37 new WarmPlasma(glucose),
38 //new FireTest(glucose),
39 new SineSphere(glucose),
40
41 // Basic test patterns for reference, not art
42 // new TestCubePattern(glucose),
43 // new TestHuePattern(glucose),
44 // new TestXPattern(glucose),
45 // new TestYPattern(glucose),
46 // new TestZPattern(glucose),
47 // new TestProjectionPattern(glucose),
48
49 };
50 }
51
52 LXTransition[] transitions(GLucose glucose) {
53 return new LXTransition[] {
54 new DissolveTransition(lx),
55 new SwipeTransition(glucose),
56 new FadeTransition(lx),
57 };
58 }
59
60 LXEffect[] effects(GLucose glucose) {
61 return new LXEffect[] {
62 new FlashEffect(lx),
63 new BoomEffect(glucose),
64 new DesaturationEffect(lx),
65 };
66 }
67