repositories
/
SugarCubes.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
New default parameters
[SugarCubes.git]
/
SugarCubes.pde
diff --git
a/SugarCubes.pde
b/SugarCubes.pde
index ec68668b854b8f1aa5525e38553ef01ad6cdb84e..fb24acb8ee4fd5fe653d18eb7f73a373d9ceee9f 100644
(file)
--- a/
SugarCubes.pde
+++ b/
SugarCubes.pde
@@
-22,37
+22,70
@@
* 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.
*/
* 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.
*/
-
-// TODO(mcslee): get rid of this global, make engine support two decks
-LXPattern gplay;
LXPattern[] patterns(GLucose glucose) {
LXPattern[] patterns(GLucose glucose) {
- return new LXPattern[] {
-
+ return new LXPattern[] {
+
+ new SineSphere(glucose),
+ //new CubeCurl(glucose),
+
// Slee
// Slee
- new Swarm(glucose),
+ // new Cathedrals(glucose),
+ new Swarm(glucose),
+ new MidiMusic(glucose),
+ new Pulley(glucose),
+
+ new ViolinWave(glucose),
+ new BouncyBalls(glucose),
new SpaceTime(glucose),
new ShiftingPlane(glucose),
new AskewPlanes(glucose),
new Blinders(glucose),
new CrossSections(glucose),
new Psychedelia(glucose),
new SpaceTime(glucose),
new ShiftingPlane(glucose),
new AskewPlanes(glucose),
new Blinders(glucose),
new CrossSections(glucose),
new Psychedelia(glucose),
+
+ new MultipleCubes(glucose),
new Traktor(glucose).setEligible(false),
new BassPod(glucose).setEligible(false),
new CubeEQ(glucose).setEligible(false),
new PianoKeyPattern(glucose).setEligible(false),
new Traktor(glucose).setEligible(false),
new BassPod(glucose).setEligible(false),
new CubeEQ(glucose).setEligible(false),
new PianoKeyPattern(glucose).setEligible(false),
+ // AntonK
+ new AKPong(glucose),
+
// DanH
new Noise(glucose),
// DanH
new Noise(glucose),
- gplay = new Play(glucose), // XXX do this properly
- new Pong(glucose),
+ new Play (glucose),
+ new Pong (glucose),
+ new Worms(glucose),
+ // JR
+ new Gimbal(glucose),
+
// Alex G
// Alex G
- new SineSphere(glucose),
+
+ // Tim
+ new TimMetronome(glucose),
+ new TimPlanes(glucose),
+ new TimPinwheels(glucose),
+ new TimRaindrops(glucose),
+ new TimCubes(glucose),
+ // new TimTrace(glucose),
+ new TimSpheres(glucose),
- // Shaheen
- new HelixPattern(glucose).setEligible(false),
+ // Jackie
+ new JackieSquares(glucose),
+ new JackieLines(glucose),
+ new JackieDots(glucose),
+
+ // L8on
+ new L8onAutomata(glucose),
+ new L8onLife(glucose),
+ new L8onStripLife(glucose),
+
+ // Vincent
+ new VSTowers(glucose),
// Toby
new GlitchPlasma(glucose),
// Toby
new GlitchPlasma(glucose),
@@
-65,23
+98,17
@@
LXPattern[] patterns(GLucose glucose) {
// Jack
new Swim(glucose),
new Balance(glucose),
// 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),
-
+
// Ben
// new Sandbox(glucose),
new TowerParams(glucose),
new DriveableCrossSections(glucose),
new GranimTestPattern2(glucose),
// Ben
// new Sandbox(glucose),
new TowerParams(glucose),
new DriveableCrossSections(glucose),
new GranimTestPattern2(glucose),
- //
JR
-
new Gimbal(gluco
se),
+ //
Shaheen
+
//new HelixPattern(glucose).setEligible(fal
se),
// Sam
new JazzRainbow(glucose),
// Sam
new JazzRainbow(glucose),
@@
-91,6
+118,9
@@
LXPattern[] patterns(GLucose glucose) {
new AbstractPainting(glucose),
new Spirality(glucose),
new AbstractPainting(glucose),
new Spirality(glucose),
+ // Micah
+ new Rings(glucose),
+
// Basic test patterns for reference, not art
new TestCubePattern(glucose),
new TestTowerPattern(glucose),
// Basic test patterns for reference, not art
new TestCubePattern(glucose),
new TestTowerPattern(glucose),
@@
-110,17
+140,31
@@
LXPattern[] patterns(GLucose glucose) {
LXTransition[] transitions(GLucose glucose) {
return new LXTransition[] {
new DissolveTransition(lx),
LXTransition[] transitions(GLucose glucose) {
return new LXTransition[] {
new DissolveTransition(lx),
+ new AddTransition(glucose),
+ new MultiplyTransition(glucose),
+ new OverlayTransition(glucose),
+ new DodgeTransition(glucose),
new SwipeTransition(glucose),
new FadeTransition(lx),
new SwipeTransition(glucose),
new FadeTransition(lx),
+// new SubtractTransition(glucose), // similar to multiply - dh
+// new BurnTransition(glucose), // similar to multiply - dh
+// new ScreenTransition(glucose), // same as add -dh
+// new SoftLightTransition(glucose), // same as overlay -dh
};
}
};
}
-LXEffect[] effects(GLucose glucose) {
- return new LXEffect[] {
- new FlashEffect(lx),
- new BoomEffect(glucose),
- new DualBlender(glucose),
- // new DesaturationEffect(lx),
- new ColorFuckerEffect(glucose),
- };
+// Handles to globally triggerable effects
+class Effects {
+ FlashEffect flash = new FlashEffect(lx);
+ BoomEffect boom = new BoomEffect(glucose);
+ BlurEffect blur = new BlurEffect(glucose);
+ QuantizeEffect quantize = new QuantizeEffect(glucose);
+ ColorFuckerEffect colorFucker = new ColorFuckerEffect(glucose);
+
+ Effects() {
+ blur.enable();
+ quantize.enable();
+ colorFucker.enable();
+ }
}
}
+