Commit | Line | Data |
---|---|---|
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 | ||
26 | LXPattern[] patterns(GLucose glucose) { | |
27 | return new LXPattern[] { | |
4c006f7b MS |
28 | |
29 | // Slee | |
5129affb MS |
30 | new ShiftingPlane(glucose), |
31 | new AskewPlanes(glucose), | |
87f6fa39 MS |
32 | new Swarm(glucose), |
33 | new SpaceTime(glucose), | |
34 | new Blinders(glucose), | |
35 | new CrossSections(glucose), | |
36 | new Psychedelia(glucose), | |
4c006f7b MS |
37 | |
38 | new Traktor(glucose).setEligible(false), | |
39 | new BassPod(glucose).setEligible(false), | |
254fbb68 MS |
40 | new CubeEQ(glucose).setEligible(false), |
41 | new PianoKeyPattern(glucose).setEligible(false), | |
4c006f7b MS |
42 | |
43 | // Dan | |
44 | new Pong(glucose), | |
45 | new Noise(glucose), | |
46 | ||
47 | // Shaheen | |
48 | new HelixPattern(glucose).setEligible(false), | |
49 | ||
50 | // Toby | |
a673599f | 51 | new GlitchPlasma(glucose), |
254fbb68 | 52 | new FireEffect(glucose).setEligible(false), |
b4aaf4e4 | 53 | new StripBounce(glucose), |
254fbb68 MS |
54 | new SoundRain(glucose).setEligible(false), |
55 | new SoundSpikes(glucose).setEligible(false), | |
821ceae9 | 56 | new FaceSync(glucose), |
b6641090 MS |
57 | |
58 | // Jack | |
59 | new Swim(glucose), | |
8185ec8f | 60 | new Balance(glucose), |
b6641090 | 61 | |
8185ec8f | 62 | // Tim |
b6641090 MS |
63 | new TimPlanes(glucose), |
64 | new TimPinwheels(glucose), | |
65 | new TimRaindrops(glucose), | |
66 | new TimCubes(glucose), | |
67 | // new TimTrace(glucose), | |
68 | new TimSpheres(glucose), | |
69 | ||
70 | // Ben | |
71 | new DriveableCrossSections(glucose), | |
72 | new GranimTestPattern2(glucose), | |
73 | ||
74 | // Sam | |
75 | new JazzRainbow(glucose), | |
80785186 | 76 | |
254d34c0 | 77 | // Basic test patterns for reference, not art |
bfff6bc2 | 78 | new TestCubePattern(glucose), |
186bc4d3 | 79 | new TestTowerPattern(glucose), |
0ba6ac44 | 80 | new TestProjectionPattern(glucose), |
254fbb68 | 81 | new TestStripPattern(glucose), |
186bc4d3 MS |
82 | // new TestHuePattern(glucose), |
83 | // new TestXPattern(glucose), | |
84 | // new TestYPattern(glucose), | |
85 | // new TestZPattern(glucose), | |
f3f5a876 | 86 | |
49815cc0 MS |
87 | }; |
88 | } | |
89 | ||
90 | LXTransition[] transitions(GLucose glucose) { | |
91 | return new LXTransition[] { | |
3f8be614 | 92 | new DissolveTransition(lx), |
49815cc0 | 93 | new SwipeTransition(glucose), |
3f8be614 | 94 | new FadeTransition(lx), |
49815cc0 MS |
95 | }; |
96 | } | |
97 | ||
98 | LXEffect[] effects(GLucose glucose) { | |
99 | return new LXEffect[] { | |
100 | new FlashEffect(lx), | |
3f8be614 | 101 | new BoomEffect(glucose), |
49815cc0 MS |
102 | new DesaturationEffect(lx), |
103 | }; | |
104 | } | |
105 |