Commit | Line | Data |
---|---|---|
49815cc0 MS |
1 | /** |
2 | * +-+-+-+-+-+ +-+-+-+-+-+ | |
3 | * / /| |\ \ | |
0e3c5542 | 4 | * / / + + \ \ |
49815cc0 MS |
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 | */ | |
75e1ddde | 25 | |
49815cc0 | 26 | LXPattern[] patterns(GLucose glucose) { |
4861d6c4 | 27 | return new LXPattern[] { |
2815b690 | 28 | |
f7f0bfe5 LW |
29 | new SineSphere(glucose), |
30 | //new CubeCurl(glucose), | |
1a92d73a | 31 | |
d1dcc4b5 | 32 | // Slee |
fa1767c1 AG |
33 | // new Cathedrals(glucose), |
34 | new Swarm(glucose), | |
d93c968f | 35 | new MidiMusic(glucose), |
0137237d | 36 | new Pulley(glucose), |
fa1767c1 | 37 | |
4760e696 | 38 | new ViolinWave(glucose), |
d1dcc4b5 | 39 | new BouncyBalls(glucose), |
87f6fa39 | 40 | new SpaceTime(glucose), |
1627a617 MS |
41 | new ShiftingPlane(glucose), |
42 | new AskewPlanes(glucose), | |
87f6fa39 MS |
43 | new Blinders(glucose), |
44 | new CrossSections(glucose), | |
45 | new Psychedelia(glucose), | |
6a4882dd BM |
46 | |
47 | new MultipleCubes(glucose), | |
4c006f7b MS |
48 | |
49 | new Traktor(glucose).setEligible(false), | |
50 | new BassPod(glucose).setEligible(false), | |
254fbb68 MS |
51 | new CubeEQ(glucose).setEligible(false), |
52 | new PianoKeyPattern(glucose).setEligible(false), | |
4c006f7b | 53 | |
d1dcc4b5 | 54 | // DanH |
4c006f7b | 55 | new Noise(glucose), |
7e3329d2 | 56 | new Play (glucose), |
57 | new Pong (glucose), | |
58 | new Worms(glucose), | |
4c006f7b | 59 | |
0b1785e3 | 60 | // Alex G |
1d414e45 | 61 | |
fa1767c1 | 62 | // Tim |
9f73bc0e | 63 | new TimMetronome(glucose), |
fa1767c1 AG |
64 | new TimPlanes(glucose), |
65 | new TimPinwheels(glucose), | |
66 | new TimRaindrops(glucose), | |
67 | new TimCubes(glucose), | |
68 | // new TimTrace(glucose), | |
69 | new TimSpheres(glucose), | |
70 | ||
37ab5878 | 71 | // Jackie |
72 | new JackieSquares(glucose), | |
4a60ba58 | 73 | new JackieLines(glucose), |
74 | new JackieDots(glucose), | |
75 | ||
4861d6c4 | 76 | // L8on |
2815b690 LW |
77 | new L8onLife(glucose), |
78 | new L8onAutomata(glucose), | |
7782bf8e | 79 | new L8onStrips(glucose), |
2815b690 | 80 | |
20e7c94f VS |
81 | // Vincent |
82 | new VSTowers(glucose), | |
4c006f7b MS |
83 | |
84 | // Toby | |
a673599f | 85 | new GlitchPlasma(glucose), |
254fbb68 | 86 | new FireEffect(glucose).setEligible(false), |
b4aaf4e4 | 87 | new StripBounce(glucose), |
254fbb68 MS |
88 | new SoundRain(glucose).setEligible(false), |
89 | new SoundSpikes(glucose).setEligible(false), | |
821ceae9 | 90 | new FaceSync(glucose), |
b6641090 MS |
91 | |
92 | // Jack | |
93 | new Swim(glucose), | |
8185ec8f | 94 | new Balance(glucose), |
1c56d2f1 | 95 | |
4861d6c4 | 96 | |
fa1767c1 | 97 | |
b6641090 | 98 | // Ben |
51227786 | 99 | // new Sandbox(glucose), |
467c8c60 | 100 | new TowerParams(glucose), |
b6641090 MS |
101 | new DriveableCrossSections(glucose), |
102 | new GranimTestPattern2(glucose), | |
51227786 | 103 | |
fa1767c1 AG |
104 | // Shaheen |
105 | //new HelixPattern(glucose).setEligible(false), | |
106 | ||
51227786 | 107 | //JR |
a7c8d80a | 108 | new Gimbal(glucose), |
51227786 | 109 | |
b6641090 MS |
110 | // Sam |
111 | new JazzRainbow(glucose), | |
80785186 | 112 | |
0208d845 AB |
113 | // Arjun |
114 | new TelevisionStatic(glucose), | |
115 | new AbstractPainting(glucose), | |
116 | new Spirality(glucose), | |
a7c8d80a | 117 | |
254d34c0 | 118 | // Basic test patterns for reference, not art |
bfff6bc2 | 119 | new TestCubePattern(glucose), |
186bc4d3 | 120 | new TestTowerPattern(glucose), |
0ba6ac44 | 121 | new TestProjectionPattern(glucose), |
254fbb68 | 122 | new TestStripPattern(glucose), |
1d75c8a9 MS |
123 | new TestBassMapping(glucose), |
124 | new TestFloorMapping(glucose), | |
125 | new TestSpeakerMapping(glucose), | |
186bc4d3 MS |
126 | // new TestHuePattern(glucose), |
127 | // new TestXPattern(glucose), | |
128 | // new TestYPattern(glucose), | |
129 | // new TestZPattern(glucose), | |
f3f5a876 | 130 | |
49815cc0 MS |
131 | }; |
132 | } | |
133 | ||
134 | LXTransition[] transitions(GLucose glucose) { | |
135 | return new LXTransition[] { | |
3f8be614 | 136 | new DissolveTransition(lx), |
32986078 | 137 | new AddTransition(glucose), |
fe30b226 | 138 | new MultiplyTransition(glucose), |
fe30b226 | 139 | new OverlayTransition(glucose), |
32986078 | 140 | new DodgeTransition(glucose), |
49815cc0 | 141 | new SwipeTransition(glucose), |
3f8be614 | 142 | new FadeTransition(lx), |
32986078 | 143 | // new SubtractTransition(glucose), // similar to multiply - dh |
144 | // new BurnTransition(glucose), // similar to multiply - dh | |
145 | // new ScreenTransition(glucose), // same as add -dh | |
146 | // new SoftLightTransition(glucose), // same as overlay -dh | |
49815cc0 MS |
147 | }; |
148 | } | |
149 | ||
75e1ddde | 150 | // Handles to globally triggerable effects |
24fc0330 MS |
151 | class Effects { |
152 | FlashEffect flash = new FlashEffect(lx); | |
153 | BoomEffect boom = new BoomEffect(glucose); | |
154 | BlurEffect blur = new BlurEffect(glucose); | |
155 | QuantizeEffect quantize = new QuantizeEffect(glucose); | |
156 | ColorFuckerEffect colorFucker = new ColorFuckerEffect(glucose); | |
157 | ||
158 | Effects() { | |
159 | blur.enable(); | |
160 | quantize.enable(); | |
161 | colorFucker.enable(); | |
162 | } | |
49815cc0 | 163 | } |
24fc0330 | 164 |