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 LXPattern[] patterns(GLucose glucose) {
27 return new LXPattern[] {
30 new Flitters(glucose),
32 new SpaceTime(glucose),
33 new ShiftingPlane(glucose),
34 new AskewPlanes(glucose),
35 new Blinders(glucose),
36 new CrossSections(glucose),
37 new Psychedelia(glucose),
39 new Traktor(glucose).setEligible(false),
40 new BassPod(glucose).setEligible(false),
41 new CubeEQ(glucose).setEligible(false),
42 new PianoKeyPattern(glucose).setEligible(false),
50 new SineSphere(glucose),
53 new HelixPattern(glucose).setEligible(false),
56 new GlitchPlasma(glucose),
57 new FireEffect(glucose).setEligible(false),
58 new StripBounce(glucose),
59 new SoundRain(glucose).setEligible(false),
60 new SoundSpikes(glucose).setEligible(false),
61 new FaceSync(glucose),
68 new TimPlanes(glucose),
69 new TimPinwheels(glucose),
70 new TimRaindrops(glucose),
71 new TimCubes(glucose),
72 // new TimTrace(glucose),
73 new TimSpheres(glucose),
76 // new Sandbox(glucose),
77 new TowerParams(glucose),
78 new DriveableCrossSections(glucose),
79 new GranimTestPattern2(glucose),
85 new JazzRainbow(glucose),
88 new TelevisionStatic(glucose),
89 new AbstractPainting(glucose),
90 new Spirality(glucose),
92 // Basic test patterns for reference, not art
93 new TestCubePattern(glucose),
94 new TestTowerPattern(glucose),
95 new TestProjectionPattern(glucose),
96 new TestStripPattern(glucose),
97 new TestBassMapping(glucose),
98 new TestFloorMapping(glucose),
99 new TestSpeakerMapping(glucose),
100 // new TestHuePattern(glucose),
101 // new TestXPattern(glucose),
102 // new TestYPattern(glucose),
103 // new TestZPattern(glucose),
108 LXTransition[] transitions(GLucose glucose) {
109 return new LXTransition[] {
110 new DissolveTransition(lx),
111 new MultiplyTransition(glucose),
112 new ScreenTransition(glucose),
113 new BurnTransition(glucose),
114 new DodgeTransition(glucose),
115 new OverlayTransition(glucose),
116 new AddTransition(glucose),
117 new SubtractTransition(glucose),
118 new SoftLightTransition(glucose),
119 new SwipeTransition(glucose),
120 new FadeTransition(lx),
124 // Handles to globally triggerable effects
126 FlashEffect EFF_flash;
128 LXEffect[] effects(GLucose glucose) {
129 return new LXEffect[] {
130 EFF_flash = new FlashEffect(lx),
131 EFF_boom = new BoomEffect(glucose),
132 new BlurEffect(glucose),
133 new DesaturationEffect(lx),
134 new ColorFuckerEffect(glucose),