Added TobySegaran.pde with a couple of new patterns
[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 WarmPlasma(glucose),
29 new FireTest(glucose),
30 new ShiftingPlane(glucose),
31 new AskewPlanes(glucose),
32 new Swarm(glucose),
33 new SpaceTime(glucose),
34 new Blinders(glucose),
35 new CrossSections(glucose),
36 new Psychedelia(glucose),
37 new CubeEQ(glucose),
38 new PianoKeyPattern(glucose),
39
40 // Basic test patterns for reference, not art
41 // new TestHuePattern(glucose),
42 // new TestXPattern(glucose),
43 // new TestYPattern(glucose),
44 // new TestZPattern(glucose),
45 // new TestProjectionPattern(glucose),
46
47 };
48 }
49
50 LXTransition[] transitions(GLucose glucose) {
51 return new LXTransition[] {
52 new DissolveTransition(lx),
53 new SwipeTransition(glucose),
54 new FadeTransition(lx),
55 };
56 }
57
58 LXEffect[] effects(GLucose glucose) {
59 return new LXEffect[] {
60 new FlashEffect(lx),
61 new BoomEffect(glucose),
62 new DesaturationEffect(lx),
63 };
64 }
65