weird merge shit
[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 HeronLX library, or files prefixed with
19 * an underscore. If you're an artist, you shouldn't need to worry about 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(LX lx) {
27 return new LXPattern[] {
28
29 <<<<<<< HEAD
30 new SineSphere(glucose),
31 //new CubeCurl(glucose),
32 // DanH
33 new Noise(glucose),
34 new Play (glucose),
35 new Pong (glucose),
36 new Worms(glucose),
37
38 =======
39 new SineSphere(lx),
40 //new CubeCurl(lx),
41
42 >>>>>>> 21dffb1b77608cacc57382f3eb6eac3ed16054c3
43 // Slee
44 // new Cathedrals(lx),
45 new Swarm(lx),
46 new MidiMusic(lx),
47 new Pulley(lx),
48
49 <<<<<<< HEAD
50 new ViolinWave(glucose),
51 new BouncyBalls(glucose),
52 new SpaceTime(glucose),
53 new ShiftingPlane(glucose),
54 new AskewPlanes(glucose),
55 new Blinders(glucose),
56 new CrossSections(glucose),
57 new Psychedelia(glucose),
58 new TimRaindrops(glucose),
59 new TimCubes(glucose),
60 new MultipleCubes(glucose),
61
62 new Traktor(glucose).setEligible(false),
63 new BassPod(glucose).setEligible(false),
64 new CubeEQ(glucose).setEligible(false),
65 new PianoKeyPattern(glucose).setEligible(false),
66
67 new StripBounce(glucose),
68
69 // AntonK
70 //new AKPong(glucose),
71 new Swim(glucose),
72 new Balance(glucose),
73
74 =======
75 new ViolinWave(lx),
76 new BouncyBalls(lx),
77 new SpaceTime(lx),
78 new ShiftingPlane(lx),
79 new AskewPlanes(lx),
80 new Blinders(lx),
81 new CrossSections(lx),
82 new Psychedelia(lx),
83
84 new MultipleCubes(lx),
85
86 new Traktor(lx).setEligible(false),
87 new BassPod(lx).setEligible(false),
88 new CubeEQ(lx).setEligible(false),
89 new PianoKeyPattern(lx).setEligible(false),
90
91 // AntonK
92 new AKPong(lx),
93
94 // DanH
95 new Noise(lx),
96 new Play (lx),
97 new Pong (lx),
98 new Worms(lx),
99 >>>>>>> 21dffb1b77608cacc57382f3eb6eac3ed16054c3
100
101
102
103 // JR
104 new Gimbal(lx),
105
106 // Alex G
107
108 <<<<<<< HEAD
109 // Tim
110 new TimMetronome(glucose),
111 new TimPlanes(glucose),
112 new TimPinwheels(glucose),
113
114 // new TimTrace(glucose),
115 new TimSpheres(glucose),
116 =======
117 // Tim
118 new TimMetronome(lx),
119 new TimPlanes(lx),
120 new TimPinwheels(lx),
121 new TimRaindrops(lx),
122 new TimCubes(lx),
123 // new TimTrace(lx),
124 new TimSpheres(lx),
125 >>>>>>> 21dffb1b77608cacc57382f3eb6eac3ed16054c3
126
127 // Jackie
128 new JackieSquares(lx),
129 new JackieLines(lx),
130 new JackieDots(lx),
131
132 // L8on
133 new L8onAutomata(lx),
134 new L8onLife(lx),
135 new L8onStripLife(lx),
136
137 // Vincent
138 new VSTowers(lx),
139
140 // Toby
141 <<<<<<< HEAD
142 new GlitchPlasma(glucose),
143 new FireEffect(glucose).setEligible(false),
144
145 new SoundRain(glucose).setEligible(false),
146 new SoundSpikes(glucose).setEligible(false),
147 new FaceSync(glucose),
148
149 // Jack
150 =======
151 new GlitchPlasma(lx),
152 new FireEffect(lx).setEligible(false),
153 new StripBounce(lx),
154 new SoundRain(lx).setEligible(false),
155 new SoundSpikes(lx).setEligible(false),
156 new FaceSync(lx),
157
158 // Jack
159 new Swim(lx),
160 new Balance(lx),
161 >>>>>>> 21dffb1b77608cacc57382f3eb6eac3ed16054c3
162
163 // Ben
164 // new Sandbox(lx),
165 new TowerParams(lx),
166 new DriveableCrossSections(lx),
167 new GranimTestPattern2(lx),
168
169 // Shaheen
170 // new HelixPattern(lx).setEligible(false),
171
172 // Sam
173 new JazzRainbow(lx),
174
175 // Arjun
176 new TelevisionStatic(lx),
177 new AbstractPainting(lx),
178 new Spirality(lx),
179
180 // Basic test patterns for reference, not art
181 new TestCubePattern(lx),
182 new TestTowerPattern(lx),
183 new TestProjectionPattern(lx),
184 new TestStripPattern(lx),
185 // new TestHuePattern(lx),
186 // new TestXPattern(lx),
187 // new TestYPattern(lx),
188 // new TestZPattern(lx),
189
190 };
191 }
192
193 LXTransition[] transitions(LX lx) {
194 return new LXTransition[] {
195 new DissolveTransition(lx),
196 new AddTransition(lx),
197 new MultiplyTransition(lx),
198 new OverlayTransition(lx),
199 new DodgeTransition(lx),
200 new SwipeTransition(lx),
201 new FadeTransition(lx),
202 };
203 }
204
205 // Handles to globally triggerable effects
206 class Effects {
207 FlashEffect flash = new FlashEffect(lx);
208 BoomEffect boom = new BoomEffect(lx);
209 BlurEffect blur = new BlurEffect(lx);
210 QuantizeEffect quantize = new QuantizeEffect(lx);
211 ColorFuckerEffect colorFucker = new ColorFuckerEffect(lx);
212
213 Effects() {
214 blur.enable();
215 quantize.enable();
216 colorFucker.enable();
217 }
218 }
219