Merge branch 'master' of https://github.com/jackstah/SugarCubes into jackstah-master
[SugarCubes.git] / SugarCubes.pde
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 new ShiftingPlane(glucose),
30 new AskewPlanes(glucose),
31 new Swarm(glucose),
32 new SpaceTime(glucose),
33 new HelixPattern(glucose).setEligible(false),
34 new Pong(glucose),
35 new Noise(glucose),
36 new Blinders(glucose),
37 new CrossSections(glucose),
38 new Psychedelia(glucose),
39 new CubeEQ(glucose).setEligible(false),
40 new PianoKeyPattern(glucose).setEligible(false),
41 new GlitchPlasma(glucose),
42 new FireEffect(glucose).setEligible(false),
43 new StripBounce(glucose),
44 new SoundRain(glucose).setEligible(false),
45 new SoundSpikes(glucose).setEligible(false),
46 new FaceSync(glucose),
47
48 // Jack
49 new Swim(glucose),
50 new Breathe(glucose),
51
52 new TimPlanes(glucose),
53 new TimPinwheels(glucose),
54 new TimRaindrops(glucose),
55 new TimCubes(glucose),
56 // new TimTrace(glucose),
57 new TimSpheres(glucose),
58
59 // Ben
60 new DriveableCrossSections(glucose),
61 new GranimTestPattern2(glucose),
62
63 // Sam
64 new JazzRainbow(glucose),
65
66 // Basic test patterns for reference, not art
67 new TestCubePattern(glucose),
68 new TestTowerPattern(glucose),
69 new TestProjectionPattern(glucose),
70 new TestStripPattern(glucose),
71 // new TestHuePattern(glucose),
72 // new TestXPattern(glucose),
73 // new TestYPattern(glucose),
74 // new TestZPattern(glucose),
75
76 };
77 }
78
79 LXTransition[] transitions(GLucose glucose) {
80 return new LXTransition[] {
81 new DissolveTransition(lx),
82 new SwipeTransition(glucose),
83 new FadeTransition(lx),
84 };
85 }
86
87 LXEffect[] effects(GLucose glucose) {
88 return new LXEffect[] {
89 new FlashEffect(lx),
90 new BoomEffect(glucose),
91 new DesaturationEffect(lx),
92 };
93 }
94