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