L8on Strips 3d Life
[SugarCubes.git] / SugarCubes.pde.orig
CommitLineData
09f7f5df
AG
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
26LXPattern[] patterns(GLucose glucose) {
27 return new LXPattern[] {
28
29<<<<<<< HEAD
30 new SineSphere(glucose),
31 new CubeCurl(glucose),
32=======
33>>>>>>> b8bb27489db7dc687bf150576e9d9439f1fa17a6
34 // Slee
35 new Cathedrals(glucose),
36 new MidiMusic(glucose),
37 new Pulley(glucose),
38 new Swarm(glucose),
39 new ViolinWave(glucose),
40 new BouncyBalls(glucose),
41 new SpaceTime(glucose),
42 new ShiftingPlane(glucose),
43 new AskewPlanes(glucose),
44 new Blinders(glucose),
45 new CrossSections(glucose),
46 new Psychedelia(glucose),
47
48 new Traktor(glucose).setEligible(false),
49 new BassPod(glucose).setEligible(false),
50 new CubeEQ(glucose).setEligible(false),
51 new PianoKeyPattern(glucose).setEligible(false),
52
53 // DanH
54 new Noise(glucose),
55 new Play (glucose),
56 new Pong (glucose),
57 new Worms(glucose),
58
59 // Alex G
60
61
62 // Shaheen
63 new HelixPattern(glucose).setEligible(false),
64
65 // Toby
66 new GlitchPlasma(glucose),
67 new FireEffect(glucose).setEligible(false),
68 new StripBounce(glucose),
69 new SoundRain(glucose).setEligible(false),
70 new SoundSpikes(glucose).setEligible(false),
71 new FaceSync(glucose),
72
73 // Jack
74 new Swim(glucose),
75 new Balance(glucose),
76
77 // Tim
78 new TimPlanes(glucose),
79 new TimPinwheels(glucose),
80 new TimRaindrops(glucose),
81 new TimCubes(glucose),
82 // new TimTrace(glucose),
83 new TimSpheres(glucose),
84
85 // Ben
86 // new Sandbox(glucose),
87 new TowerParams(glucose),
88 new DriveableCrossSections(glucose),
89 new GranimTestPattern2(glucose),
90
91 //JR
92 new Gimbal(glucose),
93
94 // Sam
95 new JazzRainbow(glucose),
96
97 // Arjun
98 new TelevisionStatic(glucose),
99 new AbstractPainting(glucose),
100 new Spirality(glucose),
101
102 // Basic test patterns for reference, not art
103 new TestCubePattern(glucose),
104 new TestTowerPattern(glucose),
105 new TestProjectionPattern(glucose),
106 new TestStripPattern(glucose),
107 new TestBassMapping(glucose),
108 new TestFloorMapping(glucose),
109 new TestSpeakerMapping(glucose),
110 // new TestHuePattern(glucose),
111 // new TestXPattern(glucose),
112 // new TestYPattern(glucose),
113 // new TestZPattern(glucose),
114
115 };
116}
117
118LXTransition[] transitions(GLucose glucose) {
119 return new LXTransition[] {
120 new DissolveTransition(lx),
121 new AddTransition(glucose),
122 new MultiplyTransition(glucose),
123 new OverlayTransition(glucose),
124 new DodgeTransition(glucose),
125 new SwipeTransition(glucose),
126 new FadeTransition(lx),
127// new SubtractTransition(glucose), // similar to multiply - dh
128// new BurnTransition(glucose), // similar to multiply - dh
129// new ScreenTransition(glucose), // same as add -dh
130// new SoftLightTransition(glucose), // same as overlay -dh
131 };
132}
133
134// Handles to globally triggerable effects
135class Effects {
136 FlashEffect flash = new FlashEffect(lx);
137 BoomEffect boom = new BoomEffect(glucose);
138 BlurEffect blur = new BlurEffect(glucose);
139 QuantizeEffect quantize = new QuantizeEffect(glucose);
140 ColorFuckerEffect colorFucker = new ColorFuckerEffect(glucose);
141
142 Effects() {
143 blur.enable();
144 quantize.enable();
145 colorFucker.enable();
146 }
147}
148