X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=SugarCubes.pde;h=0afeefecc75bb85893e0dbee8f3ca367dd9178cb;hb=7d60f6f6ea82fd5c9794524ce11d40e7d6c00bf7;hp=ef89237e2223531445568c8ca3507202e2de8bb6;hpb=3661fceed6aa9b6023c31850b42b86fc807d5abb;p=SugarCubes.git diff --git a/SugarCubes.pde b/SugarCubes.pde index ef89237..0afeefe 100644 --- a/SugarCubes.pde +++ b/SugarCubes.pde @@ -15,122 +15,144 @@ * * Welcome to the Sugar Cubes! This Processing sketch is a fun place to build * animations, effects, and interactions for the platform. Most of the icky - * code guts are embedded in the GLucose library extension. If you're an - * artist, you shouldn't need to worry about any of that. + * code guts are embedded in the HeronLX library, or files prefixed with + * an underscore. If you're an artist, you shouldn't need to worry about that. * * Below, you will find definitions of the Patterns, Effects, and Interactions. * If you're an artist, create a new tab in the Processing environment with * your name. Implement your classes there, and add them to the list below. */ -LXPattern[] patterns(GLucose glucose) { - return new LXPattern[] { +LXPattern[] patterns(LX lx) { + return new LXPattern[] { + + new SineSphere(lx), + //new CubeCurl(lx), + + // Slee + // new Cathedrals(lx), + new Swarm(lx), + new MidiMusic(lx), + new Pulley(lx), - // Slee - new Flitters(glucose), - new Swarm(glucose), - new SpaceTime(glucose), - new ShiftingPlane(glucose), - new AskewPlanes(glucose), - new Blinders(glucose), - new CrossSections(glucose), - new Psychedelia(glucose), + new ViolinWave(lx), + new BouncyBalls(lx), + new SpaceTime(lx), + new ShiftingPlane(lx), + new AskewPlanes(lx), + new Blinders(lx), + new CrossSections(lx), + new Psychedelia(lx), + + new MultipleCubes(lx), - new Traktor(glucose).setEligible(false), - new BassPod(glucose).setEligible(false), - new CubeEQ(glucose).setEligible(false), - new PianoKeyPattern(glucose).setEligible(false), + new Traktor(lx).setEligible(false), + new BassPod(lx).setEligible(false), + new CubeEQ(lx).setEligible(false), + new PianoKeyPattern(lx).setEligible(false), - // DanH - new Noise(glucose), - new Play(glucose), - new Pong(glucose), + // AntonK + new AKPong(lx), + // DanH + new Noise(lx), + new Play (lx), + new Pong (lx), + new Worms(lx), + + // JR + new Gimbal(lx), + // Alex G - new SineSphere(glucose), + + // Tim + new TimMetronome(lx), + new TimPlanes(lx), + new TimPinwheels(lx), + new TimRaindrops(lx), + new TimCubes(lx), + // new TimTrace(lx), + new TimSpheres(lx), - // Shaheen - new HelixPattern(glucose).setEligible(false), + // Jackie + new JackieSquares(lx), + new JackieLines(lx), + new JackieDots(lx), + + // L8on + new L8onAutomata(lx), + new L8onLife(lx), + new L8onStripLife(lx), + + // Vincent + new VSTowers(lx), // Toby - new GlitchPlasma(glucose), - new FireEffect(glucose).setEligible(false), - new StripBounce(glucose), - new SoundRain(glucose).setEligible(false), - new SoundSpikes(glucose).setEligible(false), - new FaceSync(glucose), + new GlitchPlasma(lx), + new FireEffect(lx).setEligible(false), + new StripBounce(lx), + new SoundRain(lx).setEligible(false), + new SoundSpikes(lx).setEligible(false), + new FaceSync(lx), // Jack - new Swim(glucose), - new Balance(glucose), - - // Tim - new TimPlanes(glucose), - new TimPinwheels(glucose), - new TimRaindrops(glucose), - new TimCubes(glucose), - // new TimTrace(glucose), - new TimSpheres(glucose), - + new Swim(lx), + new Balance(lx), + // Ben - // new Sandbox(glucose), - new TowerParams(glucose), - new DriveableCrossSections(glucose), - new GranimTestPattern2(glucose), + // new Sandbox(lx), + new TowerParams(lx), + new DriveableCrossSections(lx), + new GranimTestPattern2(lx), - //JR - new Gimbal(glucose), + // Shaheen + // new HelixPattern(lx).setEligible(false), // Sam - new JazzRainbow(glucose), + new JazzRainbow(lx), // Arjun - new TelevisionStatic(glucose), - new AbstractPainting(glucose), - new Spirality(glucose), + new TelevisionStatic(lx), + new AbstractPainting(lx), + new Spirality(lx), // Basic test patterns for reference, not art - new TestCubePattern(glucose), - new TestTowerPattern(glucose), - new TestProjectionPattern(glucose), - new TestStripPattern(glucose), - new TestBassMapping(glucose), - new TestFloorMapping(glucose), - new TestSpeakerMapping(glucose), - // new TestHuePattern(glucose), - // new TestXPattern(glucose), - // new TestYPattern(glucose), - // new TestZPattern(glucose), + new TestCubePattern(lx), + new TestTowerPattern(lx), + new TestProjectionPattern(lx), + new TestStripPattern(lx), + // new TestHuePattern(lx), + // new TestXPattern(lx), + // new TestYPattern(lx), + // new TestZPattern(lx), }; } -LXTransition[] transitions(GLucose glucose) { +LXTransition[] transitions(LX lx) { return new LXTransition[] { new DissolveTransition(lx), - new MultiplyTransition(glucose), - new ScreenTransition(glucose), - new BurnTransition(glucose), - new DodgeTransition(glucose), - new OverlayTransition(glucose), - new AddTransition(glucose), - new SubtractTransition(glucose), - new SoftLightTransition(glucose), - new SwipeTransition(glucose), + new AddTransition(lx), + new MultiplyTransition(lx), + new OverlayTransition(lx), + new DodgeTransition(lx), + new SwipeTransition(lx), new FadeTransition(lx), }; } // Handles to globally triggerable effects -BoomEffect EFF_boom; -FlashEffect EFF_flash; - -LXEffect[] effects(GLucose glucose) { - return new LXEffect[] { - EFF_flash = new FlashEffect(lx), - EFF_boom = new BoomEffect(glucose), - new BlurEffect(glucose), - new DesaturationEffect(lx), - new ColorFuckerEffect(glucose), - }; +class Effects { + FlashEffect flash = new FlashEffect(lx); + BoomEffect boom = new BoomEffect(lx); + BlurEffect blur = new BlurEffect(lx); + QuantizeEffect quantize = new QuantizeEffect(lx); + ColorFuckerEffect colorFucker = new ColorFuckerEffect(lx); + + Effects() { + blur.enable(); + quantize.enable(); + colorFucker.enable(); + } } +