cp
[SugarCubes.git] / SugarCubes.pde
CommitLineData
49815cc0
MS
1/**
2 * +-+-+-+-+-+ +-+-+-+-+-+
3 * / /| |\ \
0e3c5542 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[] {
9b37e50c
JS
28 new Breathe(glucose),
29
5129affb
MS
30 new ShiftingPlane(glucose),
31 new AskewPlanes(glucose),
87f6fa39
MS
32 new Swarm(glucose),
33 new SpaceTime(glucose),
466150f6
AG
34 new Pong(glucose),
35 new Noise(glucose),
87f6fa39
MS
36 new Blinders(glucose),
37 new CrossSections(glucose),
38 new Psychedelia(glucose),
39 new CubeEQ(glucose),
40 new PianoKeyPattern(glucose),
a673599f 41 new GlitchPlasma(glucose),
64d16e07 42 new FireEffect(glucose),
b4aaf4e4 43 new StripBounce(glucose),
821ceae9 44 new SoundRain(glucose),
f5d9de39 45 new SoundSpikes(glucose),
821ceae9 46 new FaceSync(glucose),
d564b8db 47
677f5e15
JS
48 // Jack
49 new Swim(glucose),
9b37e50c 50
ef5a1bbf 51
d564b8db 52 new TimPlanes(glucose),
53 new TimPinwheels(glucose),
54 new TimRaindrops(glucose),
55 new TimCubes(glucose),
ef5a1bbf 56 //new TimTrace(glucose),
d564b8db 57 new TimSpheres(glucose),
58
ef5a1bbf
BM
59 //Ben
60 new DriveableCrossSections(glucose),
61 new GranimTestPattern2(glucose),
80785186
S
62
63 //Sam
64 new JazzRainbow(glucose),
ef5a1bbf 65
254d34c0 66 // Basic test patterns for reference, not art
bfff6bc2 67 new TestCubePattern(glucose),
186bc4d3 68 new TestTowerPattern(glucose),
0ba6ac44 69 new TestProjectionPattern(glucose),
186bc4d3
MS
70 // new TestHuePattern(glucose),
71 // new TestXPattern(glucose),
72 // new TestYPattern(glucose),
73 // new TestZPattern(glucose),
f3f5a876 74
b18be7d3
BM
75 //slow for now, relegated to the bottom until faster!
76 new HelixPattern(glucose),
49815cc0
MS
77 };
78}
79
80LXTransition[] transitions(GLucose glucose) {
81 return new LXTransition[] {
3f8be614 82 new DissolveTransition(lx),
49815cc0 83 new SwipeTransition(glucose),
3f8be614 84 new FadeTransition(lx),
49815cc0
MS
85 };
86}
87
88LXEffect[] effects(GLucose glucose) {
89 return new LXEffect[] {
90 new FlashEffect(lx),
3f8be614 91 new BoomEffect(glucose),
49815cc0
MS
92 new DesaturationEffect(lx),
93 };
94}
95