# @description A carrier from nowhere arrives at a ring standing in a black sea. One pixel program draws the starfield, the ring, the beam and the water that reflects them. # @tags space, cinematic # @model DeepSeek V4.1 Flash # @collection Written by the models # @music sub-heavy FM kick, long FM sonar bell with NNA tails, sub, filtered radio static, 7-saw pad through an SVF, theremin lead, metallic data ticks; ping-pong delay and long reverb # @visual a listening ring on a black sea: a carrier thread of light opens the aperture into two-source moiré interference, rays and lens flare, a rippled reflection, an oscilloscope trace in the sky and a HUD flipping ACQUIRING to CARRIER LOCKED before the SIGNAL wordmark; bloom, chromatic split and grain # @duration 38 # signal.dmt - a carrier from nowhere, arriving at a ring standing in a black sea. # 100 BPM, half-time, D minor. 16 patterns of 16 rows = 38.4 seconds. # One pixel program draws the whole frame: a starfield, the ring, the beam, # the carrier trace, and the water that reflects all of it. title SIGNAL song bpm=100 speed=6 rpb=4 channels=7 loop=0 volume=0.56 order 0 1 1 2 3 3 4 4 5 5 6 6 7 7 8 8 pan 0.50 0.42 0.50 0.64 0.44 0.56 0.68 text ttl "SIGNAL" text hza "1420.405 MHZ" text hzb "CARRIER LOCKED" text hzc "ACQUIRING" # ------------------------------------------------------------------ palettes # cold machine blues with one warm signal palette deep { 0.00 0.000 0.004 0.010 0.30 0.004 0.020 0.045 0.60 0.010 0.065 0.110 0.82 0.060 0.220 0.290 1.00 0.320 0.720 0.780 } # ------------------------------------------------------------------ timeline # order:row, so it loops with the song. evtl() ramps every value. timeline { 0:00 bsig=0.05 bring=0.12 bap=0.00 bwav=0.05 btilt=-0.060 bttl=0.00 bhud=0.00 bclim=0.00 block=0.00 1:00 bsig=0.22 bring=0.28 bap=0.06 bwav=0.18 btilt=-0.045 bhud=0.55 2:00 bsig=0.36 bring=0.42 bap=0.18 bwav=0.30 btilt=-0.030 bhud=0.55 3:00 bsig=0.52 bring=0.56 bap=0.34 bwav=0.44 btilt=-0.020 bhud=0.55 4:00 bsig=0.66 bring=0.68 bap=0.48 bwav=0.56 bhud=0.40 bclim=0.05 block=1.00 5:00 bsig=0.78 bring=0.80 bap=0.60 bwav=0.66 bhud=0.00 bclim=0.20 6:00 bsig=0.88 bring=0.90 bap=0.72 bwav=0.76 bclim=0.45 7:00 bsig=0.95 bring=0.96 bap=0.82 bwav=0.84 bclim=0.70 8:00 bsig=1.00 bring=1.00 bap=0.92 bwav=0.92 bclim=0.90 9:00 bsig=1.00 bring=1.00 bap=1.00 bwav=1.00 bclim=1.00 10:00 bsig=0.96 bring=1.00 bap=1.00 bwav=0.96 bclim=1.00 11:00 bsig=0.82 bring=0.94 bap=0.82 bwav=0.82 bclim=0.82 12:00 bsig=0.56 bring=0.76 bap=0.45 bwav=0.56 bclim=0.45 bttl=0.00 13:00 bsig=0.42 bring=0.64 bap=0.22 bwav=0.40 bttl=0.35 bclim=0.20 14:00 bsig=0.55 bring=0.74 bap=0.30 bwav=0.50 bttl=0.85 bclim=0.25 15:00 bsig=0.95 bring=0.95 bap=0.65 bwav=0.80 bttl=1.00 bclim=0.55 } # ------------------------------------------------------------------ instruments inst kick { f = 56 + 460 * exp(-t * 40) $p = $p + f / sr body = sin($p * tau) * exp(-t * 6.0) low = sin($p * tau * 0.5) * exp(-t * 3.4) * 0.16 click = hp(noise(), 2200) * exp(-t * 150) * 0.45 out(dist((body + low) * 1.7 + click, 1.6) * 0.74) } inst ping nna=continue { # the carrier: an FM bell that rings far longer than its note e = exp(-t * 0.95) m = sin(ph * tau * 2.41 + sin(t * 0.55) * 0.5) * 2.0 * exp(-t * 1.7) s = sin(ph * tau + m) + sin(ph * tau * 3.01 + m * 0.5) * 0.26 out(s * e * 0.42) } inst sub { e = env(0.08, 0.55, 0.80, 1.1) s = sin(ph * tau) * 0.85 + sin(ph * tau * 2.0) * 0.24 + sin(ph * tau * 3.0) * 0.08 s = lp(s, 150 + 300 * e) out(dist(s, 1.2) * e * 0.24) } inst radio { e = env(0.02, 0.22, 0.45, 0.35) n = hp(noise(), 1100) bp = svf(n, 620 + 2400 * e + 520 * sin(t * 3.1), 0.62) crack = step(0.88, hash(floor(t * 96) + 7.3)) * exp(-t * 34) out((bp * 0.85 + crack * 0.5) * e * 0.30) } inst pad nna=continue { e = env(0.55, 1.1, 0.78, 1.9) s = usaw(freq, 0.13) s = s + sin(freq * tau * t * 1.0) * 0.10 s = svf(s, 520 + 1150 * e + 140 * sin(t * 0.21), 0.28) out(s * e * 0.24) } inst lead nna=continue { e = env(0.22, 0.35, 0.86, 0.9) vib = sin(t * 5.1) * 0.006 m = sin(ph * tau * 2.0 + 0.6 * sin(t * 1.3)) * 1.15 s = sin(ph * tau + vib * tau + m) + sin(ph * tau * 2.005) * 0.20 s = lp(s, 900 + 2200 * e) out(s * e * 0.32) } inst tick { # data: a short metallic chirp with a resonant tail e = exp(-t * 26) n = hp(noise(), 4200) bp = svf(noise(), 5200 + 2400 * sin(t * 70), 0.92) out((n * 0.4 + r2 * 1.5) * e * 0.34) } # ------------------------------------------------------------------ master master { dl = dly(l, 0.45, 0.44) dr = dly(r, 0.60, 0.44) vl = verb(l + dr * 0.26, 0.87, 0.38) vr = verb(r + dl * 0.26, 0.87, 0.38) out(dist(l + dr * 0.30 + vl * 0.26, 1.12), dist(r + dl * 0.30 + vr * 0.26, 1.12)) } # ------------------------------------------------------------------ patterns # channels: 0 kick 1 ping 2 sub 3 radio 4 pad 5 lead 6 tick pattern 0 rows=16 { D-1 3 24 ... | D-5 2 18 ... | D-3 5 15 ... | D-2 4 9 ... | . | . | . . | A-5 2 11 ... | . | . | . | . | . . | . | . | C-2 4 9 ... | . | . | . . | . | . | . | . | . | . . | . | . | . | . | . | . . | . | . | . | . | . | . . | . | . | . | . | . | . . | . | . | . | . | . | . D-1 3 20 ... | F-5 2 12 ... | . | . | . | . | . . | . | . | . | . | . | . . | . | . | . | . | . | . . | . | . | . | . | . | . . | D-6 2 10 ... | . | D-2 4 12 ... | . | . | . . | . | . | . | . | . | . . | . | . | . | . | . | . . | . | . | . | . | . | . } pattern 1 rows=16 { D-1 3 28 ... | A-4 2 20 ... | D-3 5 16 ... | D-2 4 13 ... | . | . | . . | . | . | . | . | . | . . | . | . | . | . | . | . . | . | . | . | . | . | . C-2 1 20 ... | C-5 2 18 ... | . | F-2 4 14 ... | . | . | . . | . | . | . | . | . | . . | . | . | . | . | . | C-6 6 14 ... . | . | . | . | . | . | . D-1 3 30 ... | F-5 2 18 ... | . | D-2 4 15 ... | . | . | . . | . | . | . | . | . | . . | . | . | . | . | . | C-6 6 10 ... . | . | . | . | . | . | . C-2 1 18 ... | E-5 2 16 ... | . | A-1 4 16 ... | . | . | . . | . | . | . | . | . | . . | . | . | . | . | . | . . | D-5 2 10 ... | . | . | . | . | . } pattern 2 rows=16 { D-1 3 36 ... | A-4 2 22 ... | . | D-2 4 18 ... | D-3 5 20 ... | . | . . | . | . | . | . | . | . D-1 1 14 ... | . | . | . | . | . | . . | . | . | . | . | . | . C-2 1 30 ... | . | . | F-2 4 14 ... | . | . | C-6 6 18 ... . | . | . | . | . | . | . . | . | . | . | . | . | . . | . | . | . | . | . | . D-1 3 34 ... | F-5 2 22 ... | . | D-2 4 16 ... | . | . | . . | . | . | . | . | . | . . | . | . | . | . | . | C-6 6 12 ... . | . | . | . | . | . | . C-2 1 30 ... | C-5 2 18 ... | . | A-1 4 16 ... | . | . | . . | . | . | . | . | . | . D-1 1 12 ... | . | . | . | . | . | . . | . | . | . | . | . | . } pattern 3 rows=16 { D-1 3 34 ... | D-5 2 22 ... | D-3 5 20 ... | D-2 4 16 ... | . | . | C-6 6 16 ... . | . | . | . | . | . | . C-1 1 26 ... | F-5 2 18 ... | . | F-2 4 12 ... | . | . | C-6 6 11 ... . | A-5 2 14 ... | . | . | . | . | . D-1 3 32 ... | C-6 2 18 ... | . | D-2 4 15 ... | . | . | C-6 6 14 ... . | . | . | . | . | . | C-6 6 8 ... C-1 1 24 ... | A-5 2 16 ... | . | A-1 4 13 ... | . | . | C-6 6 12 ... . | . | . | . | . | . | . D-1 3 34 ... | F-5 2 20 ... | . | D-2 4 16 ... | . | . | C-6 6 15 ... . | . | . | . | . | . | . C-1 1 26 ... | D-6 2 18 ... | . | F-2 4 12 ... | . | . | C-6 6 10 ... . | C-6 2 12 ... | . | . | . | . | . D-1 3 32 ... | A-5 2 18 ... | . | D-2 4 15 ... | . | . | C-6 6 13 ... . | . | . | . | . | . | C-6 6 9 ... C-1 1 24 ... | F-5 2 14 ... | . | A-1 4 13 ... | . | . | C-6 6 11 ... . | . | . | . | . | . | . } pattern 4 rows=16 { D-1 3 36 ... | Bb4 2 20 ... | Bb2 5 22 ... | Bb1 4 18 ... | . | . | C-6 6 14 ... . | . | . | . | . | . | . C-1 1 30 ... | F-5 2 16 ... | . | F-2 4 12 ... | . | . | C-6 6 10 ... . | . | . | . | . | . | . D-1 3 32 ... | D-5 2 18 ... | . | Bb1 4 14 ... | . | . | C-6 6 12 ... . | . | . | . | . | . | . C-1 1 30 ... | F-5 2 16 ... | . | F-2 4 12 ... | . | . | C-6 6 10 ... . | . | . | . | . | . | C-6 6 7 ... D-1 3 36 ... | Bb5 2 20 ... | . | Bb1 4 18 ... | F-2 5 22 ... | . | C-6 6 14 ... . | . | . | . | . | . | . C-1 1 30 ... | F-5 2 16 ... | . | F-2 4 12 ... | . | . | C-6 6 10 ... . | . | . | . | . | . | . D-1 3 32 ... | D-6 2 18 ... | . | Bb1 4 14 ... | . | . | C-6 6 12 ... . | . | . | . | . | . | C-6 6 8 ... C-1 1 30 ... | F-5 2 16 ... | . | F-2 4 12 ... | . | . | C-6 6 10 ... . | . | . | . | . | . | . } pattern 5 rows=16 { D-1 3 38 ... | G-4 2 22 ... | G-2 5 24 ... | G-1 4 18 ... | . | D-4 5 24 ... | C-6 6 16 ... . | . | . | . | . | . | C-6 6 8 ... D-1 3 36 ... | D-5 2 18 ... | . | G-1 4 12 ... | . | . | C-6 6 12 ... . | . | . | . | . | . | . C-1 1 32 ... | Bb4 2 20 ... | . | D-2 4 15 ... | . | . | C-6 6 14 ... . | . | . | . | . | . | C-6 6 9 ... D-1 3 34 ... | G-5 2 20 ... | . | G-1 4 13 ... | . | . | C-6 6 11 ... . | . | . | . | . | . | . D-1 3 38 ... | A-4 2 22 ... | A-2 5 24 ... | A-1 4 18 ... | . | E-4 5 22 ... | C-6 6 16 ... . | . | . | . | . | D-5 5 18 ... | C-6 6 8 ... D-1 3 36 ... | E-5 2 18 ... | . | A-1 4 12 ... | . | . | C-6 6 12 ... . | . | . | . | . | . | . C-1 1 32 ... | C-5 2 20 ... | . | D-2 4 15 ... | . | . | C-6 6 14 ... . | . | . | . | . | . | C-6 6 9 ... D-1 3 34 ... | A-5 2 20 ... | . | A-1 4 13 ... | . | . | C-6 6 11 ... . | . | . | . | . | . | . } pattern 6 rows=16 { D-1 3 40 ... | D-5 2 24 ... | D-2 5 26 ... | D-2 4 20 ... | . | A-4 5 26 ... | C-6 6 18 ... . | . | . | . | . | . | C-6 6 10 ... D-1 3 38 ... | A-5 2 20 ... | . | D-2 4 14 ... | . | D-5 5 20 ... | C-6 6 13 ... . | . | . | . | . | . | C-6 6 8 ... C-1 1 36 ... | F-5 2 22 ... | . | Bb1 4 17 ... | . | F-5 5 22 ... | C-6 6 15 ... . | . | . | . | . | . | C-6 6 10 ... D-1 3 36 ... | D-6 2 20 ... | . | D-2 4 15 ... | . | A-5 5 20 ... | C-6 6 12 ... . | . | . | . | . | . | . D-1 3 40 ... | Bb5 2 24 ... | Bb2 5 26 ... | Bb1 4 20 ... | . | D-6 5 26 ... | C-6 6 18 ... . | . | . | . | . | . | C-6 6 10 ... D-1 3 38 ... | F-5 2 20 ... | . | Bb1 4 14 ... | . | Bb5 5 22 ... | C-6 6 13 ... . | . | . | . | . | . | C-6 6 8 ... C-1 1 36 ... | D-6 2 22 ... | . | F-2 4 17 ... | . | F-5 5 22 ... | C-6 6 15 ... . | . | . | . | . | . | C-6 6 10 ... D-1 3 36 ... | Bb5 2 20 ... | . | Bb1 4 15 ... | . | D-6 5 20 ... | C-6 6 12 ... . | . | . | . | . | . | . } pattern 7 rows=16 { D-2 3 36 ... | D-5 2 22 ... | D-3 5 24 ... | D-2 4 16 ... | . | F-4 5 24 ... | . . | . | . | . | . | . | . . | A-5 2 16 ... | . | . | . | . | C-6 6 9 ... . | . | . | . | . | . | . . | . | . | F-2 4 12 ... | . | . | . . | F-5 2 14 ... | . | . | . | . | C-6 6 7 ... . | . | . | . | . | . | . . | . | . | . | . | . | . D-2 3 38 ... | Bb5 2 24 ... | Bb2 5 24 ... | Bb1 4 18 ... | . | D-5 5 24 ... | . . | . | . | . | . | . | C-6 6 9 ... . | D-6 2 16 ... | . | . | . | . | . . | . | . | F-2 4 12 ... | . | . | . . | . | . | . | . | . | C-6 6 7 ... . | F-5 2 14 ... | . | . | . | . | . . | . | . | . | . | . | . . | . | . | . | . | . | . } pattern 8 rows=16 { D-1 3 38 ... | D-6 2 30 ... | D-3 5 32 ... | D-2 4 16 ... | . | A-5 5 20 ... | . . | . | . | . | . | . | . . | . | . | . | . | . | C-6 6 8 ... . | A-5 2 14 ... | . | . | . | . | . . | . | . | F-2 4 12 ... | . | . | . . | . | . | . | . | . | . . | F-5 2 16 ... | . | . | . | D-5 5 18 ... | . . | . | . | . | . | . | . . | . | . | D-2 4 14 ... | . | . | . . | D-6 2 18 ... | . | . | . | . | C-6 6 7 ... . | . | . | . | . | . | . . | . | . | . | . | . | . . | A-5 2 14 ... | . | . | . | A-4 5 16 ... | . . | . | . | . | . | . | . . | . | . | . | . | . | C-6 6 6 ... . | D-6 2 20 ... | . | . | . | . | . } # ------------------------------------------------------------------ visuals uniform sig ringA ap wavA tilt titleA hudA climax kickE pingE hue lock fn ringd(px, py, cx, cy, rr, sq, tw) { q = rot(px - cx, py - cy, tw) qy = r1 * sq return len(q, qy) - rr } fn textline(s, ox, oy, hgt, sp) { cw = hgt * 0.47 * (1 + sp) cx = (u - ox) / cw cy = (oy - v) / hgt i = floor(cx) return glyph(str(s, i), fract(cx), fract(cy)) * step(0, cx) * step(cx, strlen(s)) * step(0, cy) * step(cy, 1) } frame { sig = evtl(bsig) ringA = evtl(bring) ap = evtl(bap) wavA = evtl(bwav) tilt = evtl(btilt) + 0.015 * sin(beat * 0.07) titleA = evtl(bttl) hudA = evtl(bhud) lock = evtl(block) climax = evtl(bclim) kickE = exp(-trig(0) * 6) pingE = exp(-trig(1) * 1.7) hue = 0.5 + 0.5 * sin(time * 0.06) } pixel { # ---------------- camera: a slow dolly toward the ring zm = 1 + 0.16 * climax + 0.018 * sin(beat * 0.05) cx0 = 0.020 * sin(beat * 0.031) cy0 = 0.12 roll = 0.008 * sin(beat * 0.037) + 0.002 * sin(beat * 0.11) rl = rot(u, v, roll) px = rl * zm + cx0 * (1 - zm) py = (r1 - cy0) * zm + cy0 gy = (-0.34 - cy0) * zm + cy0 # world horizon, transformed # ---------------- sky: dark cloud and a sparse star grid nb = fbm(px * 1.05 + 4.0, py * 1.05 - 2.0, 3) hs = hash(floor(px * 48 + 11.0) * 1.73 + floor(py * 48 + 7.0) * 97.31) h2 = hash(hs * 37.0 + 5.0) h3 = hash(hs * 91.0 + 17.0) sx = fract(px * 48 + 11.0) - 0.5 - (h2 - 0.5) * 0.62 sy = fract(py * 48 + 7.0) - 0.5 - (h3 - 0.5) * 0.62 star = step(0.972, hs) * exp(-(sx * sx + sy * sy) * 95) * (0.20 + 0.80 * h2) star = star * (0.60 + 0.40 * sin(time * 1.6 + hs * 60)) # soft airglow lifting the top of the sky aur = exp(-(py - 0.95) * (py - 0.95) * 2.4) * (0.20 + 0.35 * ringA) # dust motes hanging in the beam mxc = fract(px * 40 + 3.0) - 0.5 myc = fract(py * 40 + 1.0 - time * 0.06) - 0.5 mh = hash(floor(px * 40 + 3.0) * 3.7 + floor(py * 40 + 1.0 - time * 0.06) * 11.3) mote = step(0.984, mh) * exp(-(mxc * mxc + myc * myc) * 80) * exp(-abs(px) * 4.5) # ---------------- the ring: a machined band, edge lights and struts RR = 0.40 + 0.004 * sin(time * 0.9) q = rot(px, py - 0.16, tilt) qx = q qy = r1 * (0.95 + 0.02 * sin(time * 0.37)) rad = len(qx, qy) ang = atan2(qy, qx) d = rad - RR band = smooth(-0.018, -0.007, d) * (1 - smooth(0.007, 0.018, d)) e1 = 1 - smooth(0.0010, 0.0032, abs(d + 0.011)) e2 = 1 - smooth(0.0010, 0.0032, abs(d - 0.011)) edge = e1 + e2 arb = abs(fract(ang * 8 / tau + 0.5) - 0.5) * (tau / 8) * rad spar = exp(-arb * arb * 3200) * smooth(RR * 0.60, RR * 0.65, rad) * (1 - smooth(RR * 0.94, RR * 0.99, rad)) tic = abs(fract(ang * 24 / tau + 0.5) - 0.5) * (tau / 24) * rad crown = exp(-tic * tic * 2400) * smooth(RR * 1.03, RR * 1.06, rad) * (1 - smooth(RR * 1.09, RR * 1.12, rad)) scan = 0.62 + 0.38 * sin(ang - time * 0.8) ring = (band * 0.55 + edge * 1.15 + spar * 0.55 + crown * 0.40) * scan * (0.10 + 0.90 * ringA) glow = exp(-abs(d) * 13) * (0.10 + 0.18 * ap) # ---------------- the aperture: a disc of standing interference apR = RR * (0.52 + 0.16 * ap) disc = 1 - smooth(apR - 0.004, apR + 0.002, rad) aring = (1 - smooth(0.0012, 0.0036, abs(rad - apR))) * (0.10 + 0.90 * ap) c1 = 0.020 * sin(time * 0.6) a1 = len(qx - c1, qy) a2 = len(qx + c1, qy + 0.004) mo = (0.5 + 0.5 * sin(a1 * 86 - time * 2.9)) * (0.5 + 0.5 * sin(a2 * 86 + time * 2.2)) swp = 0.5 + 0.5 * sin(ang * 5 + rad * 30 - time * 1.4) holo = disc * ap * (mo * 0.70 + swp * 0.30) # rays thrown outward while the aperture is open raya = abs(fract(ang * 12 / tau + 0.5) - 0.5) * (tau / 12) * rad ray = exp(-raya * raya * 700) * smooth(RR * 1.04, RR * 1.55, rad) * (1 - smooth(1.5, 2.5, rad)) ray = ray * ap * (0.05 + 0.04 * sin(ang * 3 + time * 0.5)) flh = exp(-abs(py - 0.16) * 320) * exp(-abs(px) * 1.15) * (0.02 + 0.09 * ap) flv = exp(-abs(px) * 340) * exp(-abs(py - 0.16) * 2.2) * 0.05 * ap # ---------------- the beam: a thread of warm light from above bw = 0.003 + 0.009 * (1 - sig) + 0.0015 * sin(time * 8) bcore = exp(-abs(px) / bw) bglow = exp(-abs(px) * 11) bmask = step(py, 0.175) * (0.55 + 0.55 * sig) flick = 0.86 + 0.10 * sin(time * 63) + 0.04 * sin(time * 141) beam = (bcore * (0.40 + 0.95 * sig) + bglow * 0.07 * sig) * bmask * flick hot = exp(-rad * rad * 1400) * ap * (0.50 + 0.90 * sig) blaze = exp(-rad * rad * 240) * ap * ap * (0.30 + 0.35 * sig) # ---------------- carrier trace: an oscilloscope across the sky amp = 0.006 + 0.030 * sig + 0.018 * kickE ty = 0.50 + 0.042 * sin(px * 1.9 + time * 0.7) + 0.022 * sin(px * 4.3 - time * 1.1) ty = ty + amp * (0.55 * sin(px * 16 - time * 8.0) + 0.28 * sin(px * 29 + time * 12.0)) tl = exp(-abs(py - ty) * 620) * (0.22 + 0.62 * sig) tg = exp(-abs(py - ty) * 40) * 0.07 * sig # a second receiver far off on the left, only a spark at this distance mrd = len(px + 0.98, py + 0.075) - 0.040 mini = (1 - smooth(0.0014, 0.0040, abs(mrd))) * (0.16 + 0.55 * ringA) # ---------------- water wm = step(py, gy) rfy = 2 * gy - py wob = 0.0035 * sin(py * 300 + time * 2.6) + 0.005 * (fbm(px * 2.6, py * 70.0, 2) - 0.5) rfx = px + wob rq = rot(rfx, rfy - 0.16, tilt) rqx = rq rqy = r1 * 0.95 rrad = len(rqx, rqy) rd = rrad - RR rip = 0.10 + 0.90 * smooth(0.22, 0.80, fbm(px * 9.0, (gy - py) * 34.0 + time * 0.8, 2)) rband = smooth(-0.030, -0.010, rd) * (1 - smooth(0.010, 0.030, rd)) rline = (1 - smooth(0.0025, 0.0110, abs(rd))) * rip fade = exp(-max(0, gy - py) * 2.1) dys = (gy - py) * 3.4 wd = len(px, dys) wfa = exp(-abs(wd - fract(time * 0.14) * 2.8) * 44) wfb = exp(-abs(wd - fract(time * 0.14 + 0.5) * 2.8) * 44) wf = (wfa + wfb) * wavA * fade * wm * 0.10 wtex = fbm(px * 2.4 + 2.0, py * 55.0 + time * 0.03, 2) streak = exp(-abs(sin((gy - py) * 62 + wtex * 4.0)) * 12) * 0.045 * fade * wm fog = exp(-abs(py - gy) * 8) * (0.025 + 0.05 * ringA) # ---------------- assemble baseR = 0.0050 + 0.014 * nb baseG = 0.0080 + 0.023 * nb baseB = 0.0150 + 0.045 * nb baseR = mix(baseR, 0.0030 + 0.010 * wtex, wm) baseG = mix(baseG, 0.0070 + 0.026 * wtex, wm) baseB = mix(baseB, 0.0170 + 0.050 * wtex, wm) vis = (1 - wm) * (1 - disc) * (1 - min(1, edge)) rgb(baseR + star * 0.70 * vis, baseG + star * 0.78 * vis, baseB + star * 0.90 * vis + fog * 0.10) cadd(fog * 0.30, fog * 0.55, fog * 0.80) # structure, cold cadd(ring * 0.26, ring * 0.62, ring * 0.78) cadd(glow * 0.10, glow * 0.30, glow * 0.40) cadd(glow * 0.12 * ap, glow * 0.26 * ap, glow * 0.34 * ap) cadd(aring * 0.28, aring * 0.62, aring * 0.72) cadd(holo * 0.24, holo * 0.62, holo * 0.80) cadd(aur * 0.020 * (1 - wm), aur * 0.045 * (1 - wm), aur * 0.11 * (1 - wm)) cadd(mini * 0.22, mini * 0.55, mini * 0.68) cadd(mote * 0.55 * sig, mote * 0.62 * sig, mote * 0.72 * sig) cadd(ray * 0.16, ray * 0.34, ray * 0.46) cadd(flh * 0.72, flh * 0.62, flh * 0.50) cadd(flv * 0.18, flv * 0.26, flv * 0.34) # signal, warm cadd(beam * 1.00, beam * 0.86, beam * 0.58) cadd(hot * 1.00, hot * 0.90, hot * 0.70) cadd(blaze * 0.42, blaze * 0.54, blaze * 0.56) cadd(tl * 0.60 + tg * 0.50, tl * 0.90 + tg * 0.50, tl * 1.00 + tg * 0.45) # reflection cadd(rband * 0.07 * fade * ringA, rband * 0.20 * fade * ringA, rband * 0.26 * fade * ringA) cadd(rline * 0.13 * fade * ringA, rline * 0.32 * fade * ringA, rline * 0.40 * fade * ringA) cadd(beam * wm * fade * 0.18, beam * wm * fade * 0.15, beam * wm * fade * 0.10) cadd(wf * 0.28, wf * 0.66, wf * 0.82) cadd(streak * 0.30, streak * 0.58, streak * 0.70) dd = len(u * 0.62, v) cmul(max(0.52, 1 - 0.30 * dd * dd)) } post { # bloom, a ping-driven chromatic split, scanlines, grain, and the type bl = tap(-2, 0) + tap(2, 0) + tap(0, -2) + tap(0, 2) bl = bl + tap(-1, -1) + tap(1, 1) + tap(-1, 1) + tap(1, -1) bl = bl * 0.125 sh = floor(3 * pingE) ar = tap(-2 - sh, 0) ab = tap(2 + sh, 1) rgb(cget(0) * 0.96 + bl * 0.50 + ar * 0.10, cget(1) * 0.98 + bl * 0.56, cget(2) * 0.98 + bl * 0.64 + ab * 0.10) cmul(1.04) gr = (hash(x * w * 0.71 + y * h * 0.37 + frame * 13.7) - 0.5) * 0.028 cadd(gr, gr, gr) # title: the field dims and a wide wordmark takes the frame ta = titleA cmul(1 - 0.40 * ta) t1 = textline(ttl, -0.76, -0.42, 0.42, 0.24) tg = textline(ttl, -0.748, -0.414, 0.42, 0.24) + textline(ttl, -0.772, -0.426, 0.42, 0.24) tg = tg + textline(ttl, -0.76, -0.400, 0.42, 0.24) + textline(ttl, -0.76, -0.440, 0.42, 0.24) cmul(1 - 0.62 * t1 * ta) cadd(t1 * ta * 0.80 + tg * ta * 0.14, t1 * ta * 0.94 + tg * ta * 0.20, t1 * ta * 1.00 + tg * ta * 0.24) # a thin rule under the wordmark ur = (1 - smooth(0.0008, 0.0022, abs(v + 0.245))) * step(abs(u), 0.86) * ta cadd(ur * 0.16, ur * 0.30, ur * 0.36) # hud readouts ha = hudA h1 = textline(hza, -1.48, 0.84, 0.070, 0.10) lk = step(0.5, lock) h2 = textline(hzb, 0.74, 0.84, 0.070, 0.10) * lk h3 = textline(hzc, 0.95, 0.84, 0.070, 0.10) * (1 - lk) cadd(h1 * ha * 0.42 + h2 * ha * 0.36 + h3 * ha * 0.34, h1 * ha * 0.72 + h2 * ha * 0.66 + h3 * ha * 0.64, h1 * ha * 0.80 + h2 * ha * 0.74 + h3 * ha * 0.72) # corner ticks that frame the readouts tkr = (1 - smooth(0.0008, 0.0020, abs(v - 0.90))) * step(abs(u), 1.52) * ha cadd(tkr * 0.12, tkr * 0.24, tkr * 0.30) }