Squashed commit of the following:
[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 new SineSphere(glucose),
30 //new CubeCurl(glucose),
31
32 // Slee
33 // new Cathedrals(glucose),
34 new Swarm(glucose),
35 new MidiMusic(glucose),
36 new Pulley(glucose),
37
38 new ViolinWave(glucose),
39 new BouncyBalls(glucose),
40 new SpaceTime(glucose),
41 new ShiftingPlane(glucose),
42 new AskewPlanes(glucose),
43 new Blinders(glucose),
44 new CrossSections(glucose),
45 new Psychedelia(glucose),
46
47 new Traktor(glucose).setEligible(false),
48 new BassPod(glucose).setEligible(false),
49 new CubeEQ(glucose).setEligible(false),
50 new PianoKeyPattern(glucose).setEligible(false),
51
52 // DanH
53 new Noise(glucose),
54 new Play (glucose),
55 new Pong (glucose),
56 new Worms(glucose),
57
58 // Alex G
59
60 // Tim
61 new TimPlanes(glucose),
62 new TimPinwheels(glucose),
63 new TimRaindrops(glucose),
64 new TimCubes(glucose),
65 // new TimTrace(glucose),
66 new TimSpheres(glucose),
67
68 // Jackie
69 new JackieSquares(glucose),
70
71
72 // Toby
73 new GlitchPlasma(glucose),
74 new FireEffect(glucose).setEligible(false),
75 new StripBounce(glucose),
76 new SoundRain(glucose).setEligible(false),
77 new SoundSpikes(glucose).setEligible(false),
78 new FaceSync(glucose),
79
80 // Jack
81 new Swim(glucose),
82 new Balance(glucose),
83
84
85 // Ben
86 // new Sandbox(glucose),
87 new TowerParams(glucose),
88 new DriveableCrossSections(glucose),
89 new GranimTestPattern2(glucose),
90
91 // Shaheen
92 //new HelixPattern(glucose).setEligible(false),
93
94 //JR
95 new Gimbal(glucose),
96
97 // Sam
98 new JazzRainbow(glucose),
99
100 // Arjun
101 new TelevisionStatic(glucose),
102 new AbstractPainting(glucose),
103 new Spirality(glucose),
104
105 // Basic test patterns for reference, not art
106 new TestCubePattern(glucose),
107 new TestTowerPattern(glucose),
108 new TestProjectionPattern(glucose),
109 new TestStripPattern(glucose),
110 new TestBassMapping(glucose),
111 new TestFloorMapping(glucose),
112 new TestSpeakerMapping(glucose),
113 // new TestHuePattern(glucose),
114 // new TestXPattern(glucose),
115 // new TestYPattern(glucose),
116 // new TestZPattern(glucose),
117
118 };
119 }
120
121 LXTransition[] transitions(GLucose glucose) {
122 return new LXTransition[] {
123 new DissolveTransition(lx),
124 new AddTransition(glucose),
125 new MultiplyTransition(glucose),
126 new OverlayTransition(glucose),
127 new DodgeTransition(glucose),
128 new SwipeTransition(glucose),
129 new FadeTransition(lx),
130 // new SubtractTransition(glucose), // similar to multiply - dh
131 // new BurnTransition(glucose), // similar to multiply - dh
132 // new ScreenTransition(glucose), // same as add -dh
133 // new SoftLightTransition(glucose), // same as overlay -dh
134 };
135 }
136
137 // Handles to globally triggerable effects
138 class Effects {
139 FlashEffect flash = new FlashEffect(lx);
140 BoomEffect boom = new BoomEffect(glucose);
141 BlurEffect blur = new BlurEffect(glucose);
142 QuantizeEffect quantize = new QuantizeEffect(glucose);
143 ColorFuckerEffect colorFucker = new ColorFuckerEffect(glucose);
144
145 Effects() {
146 blur.enable();
147 quantize.enable();
148 colorFucker.enable();
149 }
150 }
151