MEGADEMO
megademo.dmt · 125 BPM · 30 s · 960×600
demosceneraymarchshowcase
notes
One of everything: sampled drums, a drawn-envelope pad, timeline scene cuts, title and scroller text, a raymarched torus, feedback and CRT bloom.
| music | sampled drum kit (smp), band-limited bass, NNA pad and plucks with drawn envelopes, chan reverb and delay, E9x snare rolls, Wxx driving a wavefolder |
|---|---|
| visual | timeline-cut scenes: plasma title and scroller, raymarched twisted torus (repeat), spiral feedback, credits; post bloom, chromatic aberration, scanlines; scale=2 dither=1 |
| file | megademo.dmt |
|---|---|
| duration | 0:30 |
| video | 960×600 · 30 fps · h264 + audio · 4.2 MB |
| song | 125 BPM · speed 6 · rpb 4 · 6 channels |
| loop | 0 |
| render | scale 2 · dither on · master 0.62 |
| uniforms | kickE snE padE plE camx camy camz twistk fogk |
| collection | Demos |
| tags | demosceneraymarchshowcase |
| source | 417 lines · 16 KB · download |
anatomy
17VM programs
8patterns
1palettes
27timeline events
7text / sample / texture
417source lines
8inst
2chan
1master
1frame
4pixel
1post
4fn
line composition
pattern 39%pixel 24%inst 10%fn 6%timeline 3%frame 3%venv 3%post 3%chan 3%palette 2%sample 1%master 1%text 1%title 0%song 0%order 0%pan 0%uniform 0%
play order
001122334455667
order list · 15 entries
palettes
sky5 keys · lines 35–41
timeline
| at | event | value | source | |
|---|---|---|---|---|
| 0:00 | scene | 0 | L44 | |
| 0:00 | glow | 0.2 | L44 | |
| 0:00 | cam | 0 | L44 | |
| 0:00 | twist | 0 | L44 | |
| 0:00 | fog | 1 | L44 | |
| 0:03 | glow | 1 | L45 | |
| 0:04 | scene | 1 | L46 | |
| 0:04 | glow | 0.6 | L46 | |
| 0:04 | cam | 0 | L46 | |
| 0:04 | twist | 0 | L46 | |
| 0:08 | twist | 1 | L47 | |
| 0:08 | cam | 1 | L47 | |
| 0:12 | twist | 2.5 | L48 | |
| 0:12 | cam | 2 | L48 | |
| 0:12 | glow | 1 | L48 | |
| 0:15 | scene | 2 | L49 | |
| 0:15 | glow | 0.3 | L49 | |
| 0:18 | glow | 1.2 | L50 | |
| 0:19 | scene | 1 | L51 | |
| 0:19 | twist | 1.5 | L51 | |
| 0:19 | cam | 3 | L51 | |
| 0:19 | glow | 0.8 | L51 | |
| 0:23 | twist | 0 | L52 | |
| 0:23 | cam | 0 | L52 | |
| 0:25 | scene | 3 | L53 | |
| 0:25 | glow | 0.5 | L53 | |
| 0:28 | glow | 0 | L54 |
Event times are derived from the order list, pattern lengths, BPM and RPB. The rendered video is 0:30; the computed song length is 0:29.
resources
| kind | name | info | value |
|---|---|---|---|
| text | title | 7 | DMSCENE |
| text | scroll | 163 | GREETINGS TO EVERYONE WHO EVER TYPED A TRACKER PATTERN AT 3AM ... THIS IS ONE VM, FOUR PROGRAMS, A TRACKER AND SOME FRACTALS ... PRESS 1-6 TO MUTE CHANNELS ... |
| text | credits | 65 | CODE + MUSIC + GFX : HELGE AND THE MACHINE :: THE END :: |
| sample | kick | assets/kick.wav | |
| sample | snare | assets/snare.wav | |
| sample | hat | assets/hat.wav | |
| sample | ride | assets/ride.wav | |
| venv | padenv | 4 pts | drawn volume envelope |
| venv | pluckenv | 4 pts | drawn volume envelope |
source
1# @description One of everything: sampled drums, a drawn-envelope pad, timeline scene cuts, title and scroller text, a raymarched torus, feedback and CRT bloom.
2# @tags showcase, raymarch, demoscene
3# @collection Demos
4# @music sampled drum kit (smp), band-limited bass, NNA pad and plucks with drawn envelopes, chan reverb and delay, E9x snare rolls, Wxx driving a wavefolder
5# @visual timeline-cut scenes: plasma title and scroller, raymarched twisted torus (repeat), spiral feedback, credits; post bloom, chromatic aberration, scanlines; scale=2 dither=1
6# megademo.dmt - one of everything: sampled drums, NNA pad with a drawn envelope, chan reverb,
7# timeline-driven scene cuts, title + scroller text, a raymarched torus (repeat), feedback, post bloom/CRT.
8title MEGADEMO
9song bpm=125 speed=6 rpb=4 channels=6 loop=0 volume=0.62 scale=2 dither=1
10order 0 0 1 1 2 2 3 3 4 4 5 5 6 6 7
11pan 0.5 0.4 0.5 0.6 0.35 0.65
13text title "DMSCENE"
14text scroll " GREETINGS TO EVERYONE WHO EVER TYPED A TRACKER PATTERN AT 3AM ... THIS IS ONE VM, FOUR PROGRAMS, A TRACKER AND SOME FRACTALS ... PRESS 1-6 TO MUTE CHANNELS ... "
15text credits "CODE + MUSIC + GFX : HELGE AND THE MACHINE :: THE END :: "
17sample kick "assets/kick.wav"
18sample snare "assets/snare.wav"
19sample hat "assets/hat.wav"
20sample ride "assets/ride.wav"
22venv padenv sustain=2 {
23 0.00 0
24 0.08 1
25 0.50 0.7
26 1.60 0
27}
28venv pluckenv {
29 0.000 0
30 0.004 1
31 0.120 0.35
32 0.400 0
33}
35palette sky {
36 0.00 0.02 0.00 0.08
37 0.35 0.40 0.05 0.50
38 0.60 1.00 0.35 0.20
39 0.80 1.00 0.90 0.50
40 1.00 0.02 0.00 0.08
41}
43timeline {
44 0:00 scene=0 glow=0.2 cam=0 twist=0 fog=1
45 1:08 glow=1
46 2:00 scene=1 glow=0.6 cam=0 twist=0
47 4:00 twist=1 cam=1
48 6:00 twist=2.5 cam=2 glow=1
49 8:00 scene=2 glow=0.3
50 9:08 glow=1.2
51 10:00 scene=1 twist=1.5 cam=3 glow=0.8
52 12:00 twist=0 cam=0
53 13:00 scene=3 glow=0.5
54 14:08 glow=0
55}
57# ------------------------------------------------------------------ instruments
58inst dkick {
59 out(smp(kick, t) * 0.95)
60}
61inst dsnare {
62 out(smp(snare, t) * 0.8)
63}
64inst dhat {
65 out(smp(hat, t * (1.2 - 0.4 * vel)) * 0.6)
66}
67inst dride {
68 out(smp(ride, t) * 0.5)
69}
70inst bass {
71 e = env(0.003, 0.18, 0.5, 0.08)
72 s = bsaw(ph, freq) + bsqr(ph, 0.5, freq * 0.5) * 0.4
73 s = svf(s, 180 + 2200 * e * (0.4 + p0), 0.45)
74 out(s * e * 0.5)
75}
76inst pad nna=continue {
77 e = venv(padenv)
78 s = usaw(freq, 0.18) + usaw(freq * 2.0, 0.12) * 0.25
79 s = svf(s, 400 + 900 * e + 300 * sin(t * 0.8), 0.2)
80 out(s * e * 0.22)
81}
82inst pluck nna=continue {
83 e = venv(pluckenv)
84 s = bsqr(ph, 0.25 + 0.2 * sin(t * 9), freq) + bsaw(ph * 2 + 0.3, freq * 2) * 0.4
85 s = svf(s, 500 + 6000 * e, 0.3)
86 out(fold(s * 0.6, 1 + mp0 * 2) * e * 0.3)
87}
88inst lead nna=continue {
89 e = env(0.02, 0.3, 0.7, 0.4)
90 vib = 1 + 0.005 * sin(t * 5.5) * min(t * 2, 1)
91 $p = $p + freq * vib / sr
92 s = bsaw($p, freq) + bsqr($p * 0.5, 0.5, freq * 0.5) * 0.5
93 s = svf(s, 700 + 2500 * e, 0.3)
94 out(dist(s, 1.3) * e * 0.3)
95}
97chan 3 {
98 # pad goes through its own hall
99 w = verb(x, 0.88, 0.35)
100 out(x * 0.7 + w * 0.6)
101}
102chan 4 {
103 # plucks: ping-pong-ish slap
104 d = dly(x, 0.36, 0.45)
105 out(x + d * 0.35)
106}
107master {
108 w = verb(l * 0.5 + r * 0.5, 0.75, 0.5)
109 out(dist(l + w * 0.12, 1.25), dist(r + w * 0.12, 1.25))
110}
112# channels: 0 kick 1 snare/hat/ride 2 bass 3 pad 4 pluck 5 lead
113pattern 0 rows=16 {
114 # intro: pad + plucks
115 . | . | . | A-2 6 30 | A-4 7 26 | .
116 . | . | . | . | . | .
117 . | . | . | . | C-5 7 22 | .
118 . | . | . | . | . | .
119 . | . | . | . | E-5 7 26 | .
120 . | . | . | . | . | .
121 . | . | . | . | A-5 7 20 | .
122 . | . | . | . | . | .
123 . | . | . | F-2 6 30 | F-4 7 26 | .
124 . | . | . | . | . | .
125 . | . | . | . | A-4 7 22 | .
126 . | . | . | . | . | .
127 . | . | . | . | C-5 7 26 | .
128 . | . | . | . | . | .
129 . | . | . | . | F-5 7 20 | .
130 . | . | . | . | . | .
131}
132pattern 1 rows=16 {
133 # drums + bass in
134 C-4 1 40 | C-4 3 20 | A-1 5 40 S20 | A-2 6 30 | A-4 7 26 | .
135 . | . | . | . | . | .
136 . | C-4 3 30 | A-1 5 30 | . | C-5 7 22 | .
137 . | . | . | . | . | .
138 . | C-4 2 40 | . | . | E-5 7 26 | .
139 . | . | . | . | . | .
140 . | C-4 3 30 | A-1 5 36 | . | A-5 7 20 | .
141 . | . | A-2 5 30 | . | . | .
142 C-4 1 40 | C-4 3 20 | F-1 5 40 | F-2 6 30 | F-4 7 26 | .
143 . | . | . | . | . | .
144 . | C-4 3 30 | F-1 5 30 | . | A-4 7 22 | .
145 . | . | . | . | . | .
146 . | C-4 2 40 | . | . | C-5 7 26 | .
147 . | . | . | . | . | .
148 . | C-4 3 30 | F-1 5 36 | . | F-5 7 20 | .
149 . | C-4 3 16 | G-1 5 30 | . | . | .
150}
151pattern 2 rows=16 {
152 # groove: ride, lead enters
153 C-4 1 40 | C-4 4 24 | A-1 5 40 S50 | A-2 6 30 | A-4 7 26 | A-4 8 30
154 . | . | . | . | . | .
155 . | C-4 3 30 | A-1 5 30 | . | C-5 7 22 | .
156 . | . | . | . | . | .
157 . | C-4 2 40 | . | . | E-5 7 26 | C-5 8 28
158 . | . | . | . | . | .
159 . | C-4 3 30 | A-1 5 36 | . | A-5 7 20 | .
160 C-4 1 30 | . | A-2 5 30 | . | . | E-5 8 30
161 C-4 1 40 | C-4 4 24 | F-1 5 40 | F-2 6 30 | F-4 7 26 | .
162 . | . | . | . | . | .
163 . | C-4 3 30 | F-1 5 30 | . | A-4 7 22 | D-5 8 28
164 . | . | . | . | . | .
165 . | C-4 2 40 | . | . | C-5 7 26 | C-5 8 30
166 . | . | . | . | . | .
167 . | C-4 3 30 | F-1 5 36 | . | F-5 7 20 | .
168 . | C-4 2 24 | G-1 5 30 | . | . | B-4 8 26
169}
170pattern 3 rows=16 {
171 # variation: C G
172 C-4 1 40 | C-4 4 24 | C-2 5 40 S80 | C-3 6 30 | C-5 7 26 | E-5 8 30
173 . | . | . | . | . | .
174 . | C-4 3 30 | C-2 5 30 | . | E-5 7 22 | .
175 . | . | . | . | . | .
176 . | C-4 2 40 | . | . | G-5 7 26 | G-5 8 28
177 . | . | . | . | . | .
178 . | C-4 3 30 | C-2 5 36 | . | C-6 7 20 | .
179 C-4 1 30 | . | C-3 5 30 | . | . | A-5 8 30
180 C-4 1 40 | C-4 4 24 | G-1 5 40 | G-2 6 30 | G-4 7 26 | .
181 . | . | . | . | . | .
182 . | C-4 3 30 | G-1 5 30 | . | B-4 7 22 | G-5 8 28
183 . | . | . | . | . | .
184 . | C-4 2 40 | . | . | D-5 7 26 | E-5 8 30
185 . | . | . | . | . | .
186 . | C-4 3 30 | G-1 5 36 | . | G-5 7 20 | .
187 . | C-4 2 24 | A-1 5 30 | . | . | D-5 8 26 44A
188}
189pattern 4 rows=16 {
190 # break: pad swells, pluck echoes, drums gone
191 . | . | A-1 5 30 SFF | A-2 6 36 | A-4 7 26 | .
192 . | . | . | . | . | .
193 . | . | . | . | . | .
194 . | . | . | . | E-5 7 22 | .
195 . | . | . | . | . | .
196 . | . | . | . | . | .
197 . | . | . | . | A-5 7 24 | .
198 . | . | . | . | . | .
199 . | . | F-1 5 30 | F-2 6 36 | F-4 7 26 | .
200 . | . | . | . | . | .
201 . | . | . | . | . | .
202 . | . | . | . | C-5 7 22 | .
203 . | . | . | . | . | .
204 . | . | . | . | . | .
205 . | . | . | . | F-5 7 24 | .
206 . | . | . | . | . | .
207}
208pattern 5 rows=16 {
209 # build: snare roll into the drop (E9 retrigger)
210 C-4 1 40 | . | A-1 5 40 S40 | A-2 6 30 | A-4 7 26 | A-4 8 30
211 . | . | . | . | . | .
212 . | C-4 3 30 | A-1 5 30 | . | C-5 7 22 | .
213 . | . | . | . | . | .
214 C-4 1 40 | C-4 2 30 | . | . | E-5 7 26 | .
215 . | . | . | . | . | .
216 . | C-4 3 30 | A-1 5 36 | . | A-5 7 20 | .
217 . | . | . | . | . | .
218 C-4 1 40 | C-4 2 32 E93 | F-1 5 40 | F-2 6 30 | F-4 7 26 | .
219 . | . | . | . | . | .
220 C-4 1 40 | C-4 2 36 E93 | F-1 5 30 | . | A-4 7 22 | .
221 . | . | . | . | . | .
222 C-4 1 40 | C-4 2 38 E92 | . | . | C-5 7 26 | .
223 . | C-4 2 40 E92 | . | . | . | .
224 C-4 1 40 | C-4 2 40 E91 | F-1 5 36 | . | F-5 7 20 | .
225 C-4 1 40 | C-4 2 40 E91 | G-1 5 30 | . | . | .
226}
227pattern 6 rows=16 {
228 # drop: like 3 with master filter wide open (W) and pluck folding (W feeds mp0)
229 C-4 1 40 WFF | C-4 4 24 | A-1 5 40 SA0 | A-2 6 30 | A-4 7 30 | A-5 8 30
230 . | . | . | . | . | .
231 . | C-4 3 30 | A-1 5 30 | . | C-5 7 26 | .
232 . | . | . | . | . | .
233 . | C-4 2 40 | . | . | E-5 7 30 | G-5 8 28
234 . | . | . | . | . | .
235 . | C-4 3 30 | A-1 5 36 | . | A-5 7 24 | .
236 C-4 1 30 | . | A-2 5 30 | . | . | E-5 8 30
237 C-4 1 40 | C-4 4 24 | F-1 5 40 | F-2 6 30 | F-4 7 30 | .
238 . | . | . | . | . | .
239 . | C-4 3 30 | F-1 5 30 | . | A-4 7 26 | D-5 8 28
240 . | . | . | . | . | .
241 . | C-4 2 40 | . | . | C-5 7 30 | C-5 8 30
242 . | . | . | . | . | .
243 . | C-4 3 30 | F-1 5 36 | . | F-5 7 24 | .
244 . | C-4 2 24 | G-1 5 30 | . | . | A-4 8 26
245}
246pattern 7 rows=16 {
247 # outro: everything fades, one last chord
248 C-4 1 40 W00 | C-4 4 24 | A-1 5 40 S20 | A-2 6 34 | A-4 7 24 | A-4 8 26
249 . | . | . | . | . | .
250 . | . | . | . | . | .
251 . | . | . | . | . | .
252 . | C-4 2 30 | . | . | . | .
253 . | . | . | . | . | .
254 . | . | . | . | . | .
255 . | . | . | . | . | .
256 . | . | . | . | E-5 7 20 | .
257 . | . | . | . | . | .
258 . | . | . | . | . | .
259 . | . | . | . | . | .
260 . | . | . | . | A-5 7 16 | .
261 . | . | . | . | . | .
262 . | . | . | . | . | .
263 . | . | off | off | . | off
264}
266# ------------------------------------------------------------------ helpers
267fn textline(s, px, py, sz) {
268 cx = (u - px) / sz
269 cy = (py - v) / sz
270 i = floor(cx)
271 return glyph(str(s, i), fract(cx), fract(cy)) * step(0, cx) * step(cx, strlen(s)) * step(0, cy) * step(cy, 1)
272}
273fn scroller(s, py, sz, speed) {
274 # endless wrap: the text repeats after strlen + 12 cells
275 per = (strlen(s) + 12) * sz
276 px = 1.7 * aspect - fract(time * speed / per) * per
277 a = textline(s, px, py, sz)
278 b = textline(s, px + per, py, sz)
279 return max(a, b)
280}
281fn torus(px, py, pz, R, rr) {
282 q = len(px, pz) - R
283 return len(q, py) - rr
284}
285fn scenesdf(px, py, pz, tw) {
286 # twisted torus: rotate xz by y
287 a = py * tw
288 rx = rot(px, pz, a)
289 rz = r1
290 return torus(rx, py, rz, 1.0, 0.38 + 0.08 * kickE)
291}
293uniform kickE snE padE plE camx camy camz twistk fogk
295frame {
296 kickE = exp(-trig(0) * 9)
297 snE = exp(-trig(1) * 8) * step(0.5, vel(1))
298 padE = cenv(3)
299 plE = exp(-trig(4) * 7)
300 select(evt(scene))
301 cam = evtl(cam)
302 twistk = evtl(twist) * (1 + 0.2 * sin(beat * 0.5))
303 fogk = evtl(fog)
304 camx = 3.2 * sin(beat * 0.1 + cam)
305 camz = 3.2 * cos(beat * 0.1 + cam)
306 camy = 1.2 * sin(beat * 0.07) + 0.3 * cam
307}
309pixel intro {
310 # plasma background, big title, scroller
311 p1 = sin(u * 3 + beat * 0.5) + sin(v * 4 - beat * 0.3) + sin((u + v) * 2.5 + beat * 0.2)
312 pal(sky, p1 * 0.12 + 0.5 + bar * 0.02)
313 cmul(0.25 + 0.2 * kickE)
314 g = evtl(glow)
315 ttl = textline(title, -1.05, 0.45, 0.3)
316 halo = 0
317 repeat k 5 {
318 halo = halo + textline(title, -1.05 + (k - 2) * 0.012, 0.45 + (k - 2) * 0.008, 0.3)
319 }
320 cadd(ttl * 1.0 + halo * 0.12 * g, ttl * 0.85 + halo * 0.06 * g, ttl * 0.5 + halo * 0.15 * g)
321 sc = scroller(scroll, -0.55, 0.11, 1.2)
322 cadd(sc * 0.9, sc, sc)
323 cprevz(0.5, 0.42, 1.01, 0.0, 0.3 * g)
324}
326pixel march {
327 # raymarched twisted torus
328 ro_x = camx
329 ro_y = camy
330 ro_z = camz
331 # look at the origin: build a camera basis
332 fl = len(len(ro_x, ro_z), ro_y)
333 fx = -ro_x / fl
334 fy = -ro_y / fl
335 fz = -ro_z / fl
336 rl = len(fz, fx) + 0.0001
337 rxx = fz / rl
338 rxz = -fx / rl
339 upx = fy * rxz
340 upy = fz * rxx - fx * rxz
341 upz = -fy * rxx
342 dx = fx * 1.6 + rxx * u + upx * v
343 dy = fy * 1.6 + upy * v
344 dz = fz * 1.6 + rxz * u + upz * v
345 dl = len(len(dx, dz), dy)
346 dx = dx / dl
347 dy = dy / dl
348 dz = dz / dl
349 tt = 0
350 d = 1
351 repeat i 36 {
352 px = ro_x + dx * tt
353 py = ro_y + dy * tt
354 pz = ro_z + dz * tt
355 d = scenesdf(px, py, pz, twistk)
356 tt = tt + d * 0.85 * step(0.002, d)
357 }
358 hit = step(d, 0.02) * step(tt, 12)
359 px = ro_x + dx * tt
360 py = ro_y + dy * tt
361 pz = ro_z + dz * tt
362 e = 0.01
363 nx = scenesdf(px + e, py, pz, twistk) - scenesdf(px - e, py, pz, twistk)
364 ny = scenesdf(px, py + e, pz, twistk) - scenesdf(px, py - e, pz, twistk)
365 nz = scenesdf(px, py, pz + e, twistk) - scenesdf(px, py, pz - e, twistk)
366 nl = len(len(nx, nz), ny) + 0.0001
367 nx = nx / nl
368 ny = ny / nl
369 nz = nz / nl
370 lx = 0.5
371 ly = 0.8
372 lz = -0.3
373 diff = max(nx * lx + ny * ly + nz * lz, 0)
374 rim = (1 - max(-(nx * dx + ny * dy + nz * dz), 0)) ^ 3
375 band = 0.5 + 0.5 * sin(atan2(pz, px) * 6 + py * 10 - beat * 2)
376 pal(sky, 0.15 + band * 0.25 + tt * 0.03 + bar * 0.01)
377 cmul(hit * (0.15 + 0.9 * diff + 0.8 * rim * evtl(glow)) * exp(-tt * 0.08 * fogk))
378 # background: dark gradient with stars on the snare
379 bg = (1 - hit) * (0.02 + 0.05 * (v + 1))
380 st = (1 - hit) * step(0.997, hash(floor(u * 120) + floor(v * 120) * 77.7)) * (0.3 + snE)
381 cadd(bg * 0.4 + st, bg * 0.2 + st, bg + st)
382 cmul(1 + 0.3 * kickE)
383}
385pixel feedback {
386 # spiral feedback with the pluck drawing rings
387 rr = len(u, v)
388 ring = exp(-abs(rr - 0.3 - 0.4 * fract(beat * 0.5)) * 30) * plE
389 pal(sky, rr * 0.5 + bar * 0.05)
390 cmul(ring * 1.5 + kickE * 0.1 * exp(-rr * 3))
391 sc = scroller(scroll, 0.7, 0.09, 0.9)
392 cadd(sc, sc * 0.9, sc * 0.6)
393 cprevz(0.5, 0.5, 1.04, 0.03 + 0.03 * padE, 0.92)
394}
396pixel end {
397 pal(sky, 0.55 + 0.1 * sin(u * 2 + beat * 0.2))
398 cmul(0.12 + 0.15 * kickE)
399 ttl = textline(title, -1.05, 0.5, 0.3)
400 cadd(ttl, ttl * 0.9, ttl * 0.7)
401 cr = scroller(credits, -0.3, 0.12, 0.8)
402 cadd(cr * 0.9, cr, cr)
403 cprevz(0.5, 0.5, 1.0, 0.0, 0.5 * evtl(glow))
404}
406post {
407 # bloom-ish: average a cross of taps, add on top; chromatic shift on red; vignette; scanlines
408 g = evtl(glow)
409 b = tap(-2, 0) + tap(2, 0) + tap(0, -2) + tap(0, 2) + tap(-1, -1) + tap(1, 1) + tap(-1, 1) + tap(1, -1)
410 bl = b * 0.125
411 rsh = tap(-2 - floor(3 * kickE), 0)
412 cr = mix(cget(0), rsh, 0.5)
413 rgb(cr + bl * 0.35 * g, cget(1) + bl * 0.3 * g, cget(2) + bl * 0.4 * g)
414 d = len(u, v)
415 cmul(1 - 0.35 * d * d)
416 cmul(1 - 0.18 * step(0.5, fract(y * h * 0.5)))
417}
Click a line number to link to that line.
MORROW →