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 | */ | |
51227786 | 25 | |
49815cc0 MS |
26 | LXPattern[] patterns(GLucose glucose) { |
27 | return new LXPattern[] { | |
e28f168c | 28 | |
4c006f7b | 29 | // Slee |
87f6fa39 MS |
30 | new Swarm(glucose), |
31 | new SpaceTime(glucose), | |
1627a617 MS |
32 | new ShiftingPlane(glucose), |
33 | new AskewPlanes(glucose), | |
87f6fa39 MS |
34 | new Blinders(glucose), |
35 | new CrossSections(glucose), | |
36 | new Psychedelia(glucose), | |
4c006f7b MS |
37 | |
38 | new Traktor(glucose).setEligible(false), | |
39 | new BassPod(glucose).setEligible(false), | |
254fbb68 MS |
40 | new CubeEQ(glucose).setEligible(false), |
41 | new PianoKeyPattern(glucose).setEligible(false), | |
4c006f7b | 42 | |
e28f168c | 43 | // DanH |
4c006f7b | 44 | new Noise(glucose), |
fe30b226 | 45 | new Play(glucose), |
e28f168c | 46 | new Pong(glucose), |
4c006f7b | 47 | |
0b1785e3 AG |
48 | // Alex G |
49 | new SineSphere(glucose), | |
50 | ||
4c006f7b MS |
51 | // Shaheen |
52 | new HelixPattern(glucose).setEligible(false), | |
53 | ||
54 | // Toby | |
a673599f | 55 | new GlitchPlasma(glucose), |
254fbb68 | 56 | new FireEffect(glucose).setEligible(false), |
b4aaf4e4 | 57 | new StripBounce(glucose), |
254fbb68 MS |
58 | new SoundRain(glucose).setEligible(false), |
59 | new SoundSpikes(glucose).setEligible(false), | |
821ceae9 | 60 | new FaceSync(glucose), |
b6641090 MS |
61 | |
62 | // Jack | |
63 | new Swim(glucose), | |
8185ec8f | 64 | new Balance(glucose), |
b6641090 | 65 | |
8185ec8f | 66 | // Tim |
b6641090 MS |
67 | new TimPlanes(glucose), |
68 | new TimPinwheels(glucose), | |
69 | new TimRaindrops(glucose), | |
70 | new TimCubes(glucose), | |
71 | // new TimTrace(glucose), | |
72 | new TimSpheres(glucose), | |
73 | ||
74 | // Ben | |
51227786 | 75 | // new Sandbox(glucose), |
467c8c60 | 76 | new TowerParams(glucose), |
b6641090 MS |
77 | new DriveableCrossSections(glucose), |
78 | new GranimTestPattern2(glucose), | |
51227786 MS |
79 | |
80 | //JR | |
a7c8d80a | 81 | new Gimbal(glucose), |
51227786 | 82 | |
b6641090 MS |
83 | // Sam |
84 | new JazzRainbow(glucose), | |
80785186 | 85 | |
0208d845 AB |
86 | // Arjun |
87 | new TelevisionStatic(glucose), | |
88 | new AbstractPainting(glucose), | |
89 | new Spirality(glucose), | |
a7c8d80a | 90 | |
254d34c0 | 91 | // Basic test patterns for reference, not art |
bfff6bc2 | 92 | new TestCubePattern(glucose), |
186bc4d3 | 93 | new TestTowerPattern(glucose), |
0ba6ac44 | 94 | new TestProjectionPattern(glucose), |
254fbb68 | 95 | new TestStripPattern(glucose), |
1d75c8a9 MS |
96 | new TestBassMapping(glucose), |
97 | new TestFloorMapping(glucose), | |
98 | new TestSpeakerMapping(glucose), | |
186bc4d3 MS |
99 | // new TestHuePattern(glucose), |
100 | // new TestXPattern(glucose), | |
101 | // new TestYPattern(glucose), | |
102 | // new TestZPattern(glucose), | |
f3f5a876 | 103 | |
49815cc0 MS |
104 | }; |
105 | } | |
106 | ||
107 | LXTransition[] transitions(GLucose glucose) { | |
108 | return new LXTransition[] { | |
3f8be614 | 109 | new DissolveTransition(lx), |
fe30b226 MS |
110 | new MultiplyTransition(glucose), |
111 | new ScreenTransition(glucose), | |
112 | new BurnTransition(glucose), | |
113 | new DodgeTransition(glucose), | |
114 | new OverlayTransition(glucose), | |
115 | new AddTransition(glucose), | |
116 | new SubtractTransition(glucose), | |
117 | new SoftLightTransition(glucose), | |
49815cc0 | 118 | new SwipeTransition(glucose), |
3f8be614 | 119 | new FadeTransition(lx), |
49815cc0 MS |
120 | }; |
121 | } | |
122 | ||
123 | LXEffect[] effects(GLucose glucose) { | |
124 | return new LXEffect[] { | |
125 | new FlashEffect(lx), | |
3f8be614 | 126 | new BoomEffect(glucose), |
fe30b226 | 127 | new DesaturationEffect(lx), |
d626bc9b | 128 | new ColorFuckerEffect(glucose), |
49815cc0 MS |
129 | }; |
130 | } |