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