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