Merge pull request #3 from visigoth/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 new HelixPattern(glucose),
29 new ShiftingPlane(glucose),
30 new AskewPlanes(glucose),
31 new Swarm(glucose),
32 new SpaceTime(glucose),
33 new Pong(glucose),
34 new Noise(glucose),
35 new Blinders(glucose),
36 new CrossSections(glucose),
37 new Psychedelia(glucose),
38 new CubeEQ(glucose),
39 new PianoKeyPattern(glucose),
40 new GlitchPlasma(glucose),
41 new FireEffect(glucose),
42 new StripBounce(glucose),
43 new SoundRain(glucose),
44 new SoundSpikes(glucose),
45 new FaceSync(glucose),
46
47 // Basic test patterns for reference, not art
48 new TestCubePattern(glucose),
49 new TestTowerPattern(glucose),
50 new TestProjectionPattern(glucose),
51 // new TestHuePattern(glucose),
52 // new TestXPattern(glucose),
53 // new TestYPattern(glucose),
54 // new TestZPattern(glucose),
55
56 };
57 }
58
59 LXTransition[] transitions(GLucose glucose) {
60 return new LXTransition[] {
61 new DissolveTransition(lx),
62 new SwipeTransition(glucose),
63 new FadeTransition(lx),
64 };
65 }
66
67 LXEffect[] effects(GLucose glucose) {
68 return new LXEffect[] {
69 new FlashEffect(lx),
70 new BoomEffect(glucose),
71 new DesaturationEffect(lx),
72 };
73 }
74