| 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 | LXPattern gplay; |
| 26 | |
| 27 | LXPattern[] patterns(GLucose glucose) { |
| 28 | return new LXPattern[] { |
| 29 | |
| 30 | new Gimbal(glucose), |
| 31 | |
| 32 | // DMK |
| 33 | |
| 34 | // Slee |
| 35 | new Swarm(glucose), |
| 36 | //new ScreenScrape(glucose), |
| 37 | new SpaceTime(glucose), |
| 38 | new ShiftingPlane(glucose), |
| 39 | new AskewPlanes(glucose), |
| 40 | new Blinders(glucose), |
| 41 | new CrossSections(glucose), |
| 42 | new Psychedelia(glucose), |
| 43 | |
| 44 | new Traktor(glucose).setEligible(false), |
| 45 | new BassPod(glucose).setEligible(false), |
| 46 | new CubeEQ(glucose).setEligible(false), |
| 47 | new PianoKeyPattern(glucose).setEligible(false), |
| 48 | |
| 49 | // DanH |
| 50 | new Noise(glucose), |
| 51 | gplay=new Play(glucose), // XXX do this properly |
| 52 | new Pong(glucose), |
| 53 | |
| 54 | // Alex G |
| 55 | new SineSphere(glucose), |
| 56 | |
| 57 | // Shaheen |
| 58 | new HelixPattern(glucose).setEligible(false), |
| 59 | |
| 60 | // Toby |
| 61 | new GlitchPlasma(glucose), |
| 62 | new FireEffect(glucose).setEligible(false), |
| 63 | new StripBounce(glucose), |
| 64 | new SoundRain(glucose).setEligible(false), |
| 65 | new SoundSpikes(glucose).setEligible(false), |
| 66 | new FaceSync(glucose), |
| 67 | |
| 68 | // Jack |
| 69 | new Swim(glucose), |
| 70 | new Balance(glucose), |
| 71 | |
| 72 | // Tim |
| 73 | new TimPlanes(glucose), |
| 74 | new TimPinwheels(glucose), |
| 75 | new TimRaindrops(glucose), |
| 76 | new TimCubes(glucose), |
| 77 | // new TimTrace(glucose), |
| 78 | new TimSpheres(glucose), |
| 79 | |
| 80 | // Ben |
| 81 | new DriveableCrossSections(glucose), |
| 82 | new GranimTestPattern2(glucose), |
| 83 | |
| 84 | // Sam |
| 85 | new JazzRainbow(glucose), |
| 86 | |
| 87 | // Basic test patterns for reference, not art |
| 88 | new TestCubePattern(glucose), |
| 89 | new TestTowerPattern(glucose), |
| 90 | new TestProjectionPattern(glucose), |
| 91 | new TestStripPattern(glucose), |
| 92 | new TestBassMapping(glucose), |
| 93 | new TestFloorMapping(glucose), |
| 94 | new TestSpeakerMapping(glucose), |
| 95 | // new TestHuePattern(glucose), |
| 96 | // new TestXPattern(glucose), |
| 97 | // new TestYPattern(glucose), |
| 98 | // new TestZPattern(glucose), |
| 99 | |
| 100 | }; |
| 101 | } |
| 102 | |
| 103 | LXTransition[] transitions(GLucose glucose) { |
| 104 | return new LXTransition[] { |
| 105 | new DissolveTransition(lx), |
| 106 | new SwipeTransition(glucose), |
| 107 | new FadeTransition(lx), |
| 108 | }; |
| 109 | } |
| 110 | |
| 111 | LXEffect[] effects(GLucose glucose) { |
| 112 | return new LXEffect[] { |
| 113 | new FlashEffect(lx), |
| 114 | new BoomEffect(glucose), |
| 115 | //new DesaturationEffect(lx), |
| 116 | //new ColorFuckerEffect(glucose), |
| 117 | new DualBlender(glucose), |
| 118 | }; |
| 119 | } |