2 * +-+-+-+-+-+ +-+-+-+-+-+
5 * +-+-+-+-+-+ | +-+-+-+-+ | +-+-+-+-+-+
7 * + THE + / / \ \ + CUBES +
8 * | |/ +-+-+-+-+-+-+-+ \| |
9 * +-+-+-+-+-+ | | +-+-+-+-+-+
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.
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.
26 // TODO(mcslee): get rid of this global, make engine support two decks
29 LXPattern[] patterns(GLucose glucose) {
30 return new LXPattern[] {
34 new SpaceTime(glucose),
35 new ShiftingPlane(glucose),
36 new AskewPlanes(glucose),
37 new Blinders(glucose),
38 new CrossSections(glucose),
39 new Psychedelia(glucose),
41 new Traktor(glucose).setEligible(false),
42 new BassPod(glucose).setEligible(false),
43 new CubeEQ(glucose).setEligible(false),
44 new PianoKeyPattern(glucose).setEligible(false),
48 gplay = new Play(glucose), // XXX do this properly
52 new SineSphere(glucose),
55 new HelixPattern(glucose).setEligible(false),
58 new GlitchPlasma(glucose),
59 new FireEffect(glucose).setEligible(false),
60 new StripBounce(glucose),
61 new SoundRain(glucose).setEligible(false),
62 new SoundSpikes(glucose).setEligible(false),
63 new FaceSync(glucose),
70 new TimPlanes(glucose),
71 new TimPinwheels(glucose),
72 new TimRaindrops(glucose),
73 new TimCubes(glucose),
74 // new TimTrace(glucose),
75 new TimSpheres(glucose),
78 // new Sandbox(glucose),
79 new TowerParams(glucose),
80 new DriveableCrossSections(glucose),
81 new GranimTestPattern2(glucose),
87 new JazzRainbow(glucose),
90 new TelevisionStatic(glucose),
91 new AbstractPainting(glucose),
92 new Spirality(glucose),
94 // Basic test patterns for reference, not art
95 new TestCubePattern(glucose),
96 new TestTowerPattern(glucose),
97 new TestProjectionPattern(glucose),
98 new TestStripPattern(glucose),
99 new TestBassMapping(glucose),
100 new TestFloorMapping(glucose),
101 new TestSpeakerMapping(glucose),
102 // new TestHuePattern(glucose),
103 // new TestXPattern(glucose),
104 // new TestYPattern(glucose),
105 // new TestZPattern(glucose),
110 LXTransition[] transitions(GLucose glucose) {
111 return new LXTransition[] {
112 new DissolveTransition(lx),
113 new SwipeTransition(glucose),
114 new FadeTransition(lx),
118 LXEffect[] effects(GLucose glucose) {
119 return new LXEffect[] {
121 new BoomEffect(glucose),
122 // new DesaturationEffect(lx),
123 // new ColorFuckerEffect(glucose),
124 new DualBlender(glucose),