Merge branch 'panda-refactor' of https://github.com/sugarcubes/SugarCubes
[SugarCubes.git] / SugarCubes.pde
CommitLineData
49815cc0
MS
1/**
2 * +-+-+-+-+-+ +-+-+-+-+-+
3 * / /| |\ \
b11ff42b 4 * / / + <+ \ \
49815cc0
MS
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
26LXPattern[] patterns(GLucose glucose) {
27 return new LXPattern[] {
5129affb
MS
28 new ShiftingPlane(glucose),
29 new AskewPlanes(glucose),
87f6fa39
MS
30 new Swarm(glucose),
31 new SpaceTime(glucose),
32 new Blinders(glucose),
33 new CrossSections(glucose),
34 new Psychedelia(glucose),
35 new CubeEQ(glucose),
36 new PianoKeyPattern(glucose),
49815cc0
MS
37
38 // Basic test patterns for reference, not art
39// new TestHuePattern(glucose),
40// new TestXPattern(glucose),
41// new TestYPattern(glucose),
87f6fa39 42// new TestZPattern(glucose),
f3f5a876
MS
43// new TestProjectionPattern(glucose),
44
49815cc0
MS
45 };
46}
47
48LXTransition[] transitions(GLucose glucose) {
49 return new LXTransition[] {
3f8be614 50 new DissolveTransition(lx),
49815cc0 51 new SwipeTransition(glucose),
3f8be614 52 new FadeTransition(lx),
49815cc0
MS
53 };
54}
55
56LXEffect[] effects(GLucose glucose) {
57 return new LXEffect[] {
58 new FlashEffect(lx),
3f8be614 59 new BoomEffect(glucose),
49815cc0
MS
60 new DesaturationEffect(lx),
61 };
62}
63