forked from visigoth/SugarCubes
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSugarCubes.pde
More file actions
167 lines (141 loc) · 4.63 KB
/
Copy pathSugarCubes.pde
File metadata and controls
167 lines (141 loc) · 4.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
/**
* +-+-+-+-+-+ +-+-+-+-+-+
* / /| |\ \
* / / + + \ \
* +-+-+-+-+-+ | +-+-+-+-+ | +-+-+-+-+-+
* | | + / \ + | |
* + THE + / / \ \ + CUBES +
* | |/ +-+-+-+-+-+-+-+ \| |
* +-+-+-+-+-+ | | +-+-+-+-+-+
* + +
* | SUGAR |
* + +
* | |
* +-+-+-+-+-+-+-+
*
* Welcome to the Sugar Cubes! This Processing sketch is a fun place to build
* animations, effects, and interactions for the platform. Most of the icky
* code guts are embedded in the GLucose library extension. If you're an
* artist, you shouldn't need to worry about any of that.
*
* Below, you will find definitions of the Patterns, Effects, and Interactions.
* If you're an artist, create a new tab in the Processing environment with
* your name. Implement your classes there, and add them to the list below.
*/
LXPattern[] patterns(GLucose glucose) {
return new LXPattern[] {
new SineSphere(glucose),
//new CubeCurl(glucose),
// Slee
// new Cathedrals(glucose),
new Swarm(glucose),
new MidiMusic(glucose),
new Pulley(glucose),
new ViolinWave(glucose),
new BouncyBalls(glucose),
new SpaceTime(glucose),
new ShiftingPlane(glucose),
new AskewPlanes(glucose),
new Blinders(glucose),
new CrossSections(glucose),
new Psychedelia(glucose),
new MultipleCubes(glucose),
new Traktor(glucose).setEligible(false),
new BassPod(glucose).setEligible(false),
new CubeEQ(glucose).setEligible(false),
new PianoKeyPattern(glucose).setEligible(false),
// AntonK
new AKPong(glucose),
// DanH
new Noise(glucose),
new Play (glucose),
new Pong (glucose),
new Worms(glucose),
// JR
new Gimbal(glucose),
// Alex G
// Tim
new TimMetronome(glucose),
new TimPlanes(glucose),
new TimPinwheels(glucose),
new TimRaindrops(glucose),
new TimCubes(glucose),
// new TimTrace(glucose),
new TimSpheres(glucose),
// Jackie
new JackieSquares(glucose),
new JackieLines(glucose),
new JackieDots(glucose),
// L8on
new L8onAutomata(glucose),
new L8onLife(glucose),
new L8onStripLife(glucose),
new L8onBreatheColor(glucose),
new L8onMixColor(glucose),
// Vincent
new VSTowers(glucose),
// Toby
new GlitchPlasma(glucose),
new FireEffect(glucose).setEligible(false),
new StripBounce(glucose),
new SoundRain(glucose).setEligible(false),
new SoundSpikes(glucose).setEligible(false),
new FaceSync(glucose),
// Jack
new Swim(glucose),
new Balance(glucose),
// Ben
// new Sandbox(glucose),
new TowerParams(glucose),
new DriveableCrossSections(glucose),
new GranimTestPattern2(glucose),
// Shaheen
//new HelixPattern(glucose).setEligible(false),
// Sam
new JazzRainbow(glucose),
// Arjun
new TelevisionStatic(glucose),
new AbstractPainting(glucose),
new Spirality(glucose),
// Basic test patterns for reference, not art
new TestCubePattern(glucose),
new TestTowerPattern(glucose),
new TestProjectionPattern(glucose),
new TestStripPattern(glucose),
new TestBassMapping(glucose),
new TestFloorMapping(glucose),
new TestSpeakerMapping(glucose),
// new TestHuePattern(glucose),
// new TestXPattern(glucose),
// new TestYPattern(glucose),
// new TestZPattern(glucose),
};
}
LXTransition[] transitions(GLucose glucose) {
return new LXTransition[] {
new DissolveTransition(lx),
new AddTransition(glucose),
new MultiplyTransition(glucose),
new OverlayTransition(glucose),
new DodgeTransition(glucose),
new SwipeTransition(glucose),
new FadeTransition(lx),
// new SubtractTransition(glucose), // similar to multiply - dh
// new BurnTransition(glucose), // similar to multiply - dh
// new ScreenTransition(glucose), // same as add -dh
// new SoftLightTransition(glucose), // same as overlay -dh
};
}
// Handles to globally triggerable effects
class Effects {
FlashEffect flash = new FlashEffect(lx);
BoomEffect boom = new BoomEffect(glucose);
BlurEffect blur = new BlurEffect(glucose);
QuantizeEffect quantize = new QuantizeEffect(glucose);
ColorFuckerEffect colorFucker = new ColorFuckerEffect(glucose);
Effects() {
blur.enable();
quantize.enable();
colorFucker.enable();
}
}