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