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