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[] { | |
3b85aef4 | 28 | new GranimTestPattern2(glucose), |
fe0cb084 | 29 | new GranimTestPattern(glucose), |
a68abe8c | 30 | new Sandbox(glucose), |
fd8a39b0 | 31 | new HelixPattern(glucose), |
5129affb MS |
32 | new ShiftingPlane(glucose), |
33 | new AskewPlanes(glucose), | |
87f6fa39 MS |
34 | new Swarm(glucose), |
35 | new SpaceTime(glucose), | |
466150f6 AG |
36 | new Pong(glucose), |
37 | new Noise(glucose), | |
87f6fa39 MS |
38 | new Blinders(glucose), |
39 | new CrossSections(glucose), | |
40 | new Psychedelia(glucose), | |
41 | new CubeEQ(glucose), | |
42 | new PianoKeyPattern(glucose), | |
a673599f | 43 | new GlitchPlasma(glucose), |
64d16e07 | 44 | new FireEffect(glucose), |
b4aaf4e4 | 45 | new StripBounce(glucose), |
821ceae9 | 46 | new SoundRain(glucose), |
f5d9de39 | 47 | new SoundSpikes(glucose), |
821ceae9 | 48 | new FaceSync(glucose), |
49815cc0 | 49 | |
254d34c0 | 50 | // Basic test patterns for reference, not art |
bfff6bc2 | 51 | new TestCubePattern(glucose), |
186bc4d3 | 52 | new TestTowerPattern(glucose), |
0ba6ac44 | 53 | new TestProjectionPattern(glucose), |
186bc4d3 MS |
54 | // new TestHuePattern(glucose), |
55 | // new TestXPattern(glucose), | |
56 | // new TestYPattern(glucose), | |
57 | // new TestZPattern(glucose), | |
f3f5a876 | 58 | |
49815cc0 MS |
59 | }; |
60 | } | |
61 | ||
62 | LXTransition[] transitions(GLucose glucose) { | |
63 | return new LXTransition[] { | |
3f8be614 | 64 | new DissolveTransition(lx), |
49815cc0 | 65 | new SwipeTransition(glucose), |
3f8be614 | 66 | new FadeTransition(lx), |
49815cc0 MS |
67 | }; |
68 | } | |
69 | ||
70 | LXEffect[] effects(GLucose glucose) { | |
71 | return new LXEffect[] { | |
72 | new FlashEffect(lx), | |
3f8be614 | 73 | new BoomEffect(glucose), |
49815cc0 MS |
74 | new DesaturationEffect(lx), |
75 | }; | |
76 | } | |
77 |