Merge pull request #1 from sugarcubes/master
[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
29 // Slee
30 new ShiftingPlane(glucose),
31 new AskewPlanes(glucose),
32 new Swarm(glucose),
33 new SpaceTime(glucose),
34 new Blinders(glucose),
35 new CrossSections(glucose),
36 new Psychedelia(glucose),
37
38 new Traktor(glucose).setEligible(false),
39 new BassPod(glucose).setEligible(false),
40 new CubeEQ(glucose).setEligible(false),
41 new PianoKeyPattern(glucose).setEligible(false),
42
43 // Dan
44 new Pong(glucose),
45 new Noise(glucose),
46
47 // Shaheen
48 new HelixPattern(glucose).setEligible(false),
49
50 // Toby
51 new GlitchPlasma(glucose),
52 new FireEffect(glucose).setEligible(false),
53 new StripBounce(glucose),
54 new SoundRain(glucose).setEligible(false),
55 new SoundSpikes(glucose).setEligible(false),
56 new FaceSync(glucose),
57
58 // Jack
59 new Swim(glucose),
60 new Breathe(glucose),
61
62 new TimPlanes(glucose),
63 new TimPinwheels(glucose),
64 new TimRaindrops(glucose),
65 new TimCubes(glucose),
66 // new TimTrace(glucose),
67 new TimSpheres(glucose),
68
69 // Ben
70 new DriveableCrossSections(glucose),
71 new GranimTestPattern2(glucose),
72
73 // Sam
74 new JazzRainbow(glucose),
75
76 // Basic test patterns for reference, not art
77 new TestCubePattern(glucose),
78 new TestTowerPattern(glucose),
79 new TestProjectionPattern(glucose),
80 new TestStripPattern(glucose),
81 // new TestHuePattern(glucose),
82 // new TestXPattern(glucose),
83 // new TestYPattern(glucose),
84 // new TestZPattern(glucose),
85
86 };
87 }
88
89 LXTransition[] transitions(GLucose glucose) {
90 return new LXTransition[] {
91 new DissolveTransition(lx),
92 new SwipeTransition(glucose),
93 new FadeTransition(lx),
94 };
95 }
96
97 LXEffect[] effects(GLucose glucose) {
98 return new LXEffect[] {
99 new FlashEffect(lx),
100 new BoomEffect(glucose),
101 new DesaturationEffect(lx),
102 };
103 }
104