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[] { | |
5129affb MS |
28 | new ShiftingPlane(glucose), |
29 | new AskewPlanes(glucose), | |
87f6fa39 MS |
30 | new Swarm(glucose), |
31 | new SpaceTime(glucose), | |
466150f6 AG |
32 | new Pong(glucose), |
33 | new Noise(glucose), | |
87f6fa39 MS |
34 | new Blinders(glucose), |
35 | new CrossSections(glucose), | |
36 | new Psychedelia(glucose), | |
37 | new CubeEQ(glucose), | |
38 | new PianoKeyPattern(glucose), | |
99c99d34 | 39 | new WarmPlasma(glucose), |
4e93e292 MS |
40 | // new FireTest(glucose), |
41 | // new SineSphere(glucose), | |
49815cc0 | 42 | |
254d34c0 | 43 | // Basic test patterns for reference, not art |
bfff6bc2 | 44 | new TestCubePattern(glucose), |
0ba6ac44 MS |
45 | new TestHuePattern(glucose), |
46 | new TestProjectionPattern(glucose), | |
49815cc0 MS |
47 | // new TestXPattern(glucose), |
48 | // new TestYPattern(glucose), | |
87f6fa39 | 49 | // new TestZPattern(glucose), |
f3f5a876 | 50 | |
49815cc0 MS |
51 | }; |
52 | } | |
53 | ||
54 | LXTransition[] transitions(GLucose glucose) { | |
55 | return new LXTransition[] { | |
3f8be614 | 56 | new DissolveTransition(lx), |
49815cc0 | 57 | new SwipeTransition(glucose), |
3f8be614 | 58 | new FadeTransition(lx), |
49815cc0 MS |
59 | }; |
60 | } | |
61 | ||
62 | LXEffect[] effects(GLucose glucose) { | |
63 | return new LXEffect[] { | |
64 | new FlashEffect(lx), | |
3f8be614 | 65 | new BoomEffect(glucose), |
49815cc0 MS |
66 | new DesaturationEffect(lx), |
67 | }; | |
68 | } | |
69 |