-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathspeaker-speak-fractals-x-dancing-dropplets.js
More file actions
128 lines (127 loc) · 2.46 KB
/
speaker-speak-fractals-x-dancing-dropplets.js
File metadata and controls
128 lines (127 loc) · 2.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
vn = 20
sn = 45
shape(vn, 1 / sn)
.color(1, 0, 0)
.scroll(
() => time / sn,
() => time / sn
)
.rotate(() => time / sn)
.diff(
shape(vn, 1 / sn)
.color(0, 1, 0)
.scroll(
() => time / 1 / sn,
() => time / 1 / sn
)
.rotate(() => time / 1 + a.fft[0])
)
.diff(
shape(vn, 2 / sn)
.color(0, 0, 1)
.scroll(
() => time / 2 / sn,
() => time / 2 / sn
)
.rotate(() => time / 2 - a.fft[1])
)
.diff(
shape(vn, 3 / sn)
.color(1, 0, 0)
.scroll(
() => time / 3 / sn,
() => time / 3 / sn
)
.rotate(() => time / 3 + a.fft[2])
)
.diff(
shape(vn, 4 / sn)
.color(0, 1, 0)
.scroll(
() => time / 4 / sn,
() => time / 4 / sn
)
.rotate(() => time / 4 - a.fft[3])
)
.diff(
shape(vn, 5 / sn)
.color(0, 0, 1)
.scroll(
() => time / 5 / sn,
() => time / 5 / sn
)
.rotate(() => time / 5 - a.fft[0])
)
.diff(
shape(vn, 6 / sn)
.color(0, 1, 1)
.scroll(
() => time / 6 / sn,
() => time / 6 / sn
)
.rotate(() => time / 6 + a.fft[1])
)
.diff(
shape(vn, 7 / sn)
.color(1, 0, 1)
.scroll(
() => time / 7 / sn,
() => time / 7 / sn
)
.rotate(() => time / 7 - a.fft[2])
)
.diff(
shape(vn, 8 / sn)
.color(1, 1, 0)
.scroll(
() => time / 8 / sn,
() => time / 8 / sn
)
.rotate(() => time / 8 + a.fft[3])
)
.diff(
shape(vn, 9 / sn)
.color(1, 1, 1)
.scroll(
() => time / 9 / sn,
() => time / 9 / sn
)
.rotate(() => time / 9 + a.fft[0])
)
.scale(0.3)
.blend(o0, [0.6, 0.8, 0.7, 0.5].fast())
.out()
bpm = 140
a.show()
a.setSmooth(0.2)
// Beerware
// Sylvain "Magicking" Laurent
await loadScript('https://h.6120.eu/hydra-fractals.js')
await loadScript('https://h.6120.eu/hydra-outputs.js')
await loadScript('https://h.6120.eu/hydra-colorspaces.js')
//oS.setLinear()
oS.setNearest()
bpm = 140
src(o1)
.scale(0.75)
.add(noise(3, 1).color(0.3, 0.3, 0.8), () => a.fft[0] * 1.5)
.add(
gradient()
.rgb.aSet(0)
.cmyk.from()
.hsv.hOffsetFrom(noise(3), 0.3)
.yuv(0.5, 0.2)
.mask(shape(3).scale(() => a.fft[0] * 1.5))
)
.invert()
.mirrorY2()
.mirrorX2()
.blend(o1, 0.3)
.modulate(src(o0))
.out(o1)
render(o1)
a.show()
a.setBins(4)
a.setSmooth(0.3)
a.setScale(8)
a.setCutoff(1)