Something went wrong. Try again.
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460<!doctype html><html lang="en"> <head> <meta charset="utf-8" /> <title>wave entrance bench</title> <style> /* The app's own ink, so a rasterization here is a rasterization of the same paint. */ :root { --panel: #070708; --panel-hover: #0c0d0e; --line-strong: #232527; --text: #c9d1d9; --text-strong: #f2f4f6; --text-muted: #8d939a; --text-faint: #4d5157; --accent: #3fb950; --loop: #e3b341; --loop-dim: #8a6516; --detected: #79c0ff; --detected-dim: #2f5f86; --radius: 2px; --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, monospace; } html, body { margin: 0; background: var(--panel); font-family: var(--font-mono); } #stage { padding: 24px; } .row-label { color: var(--text-muted); font-size: 11px; margin: 0 0 6px; }
/* ── copied verbatim from src/App.css: the row, the marks, the slider ─────────── */ .pb-seek, .pb-volume { -webkit-appearance: none; appearance: none; height: 14px; background: transparent; cursor: pointer; } .pb-seek { flex: 1; min-width: 80px; height: 20px; } .pb-seek-wrap { position: relative; display: flex; flex: 1; min-width: 80px; --pb-loop-lane: 0px; } .pb-marks { position: absolute; inset: 0; pointer-events: none; } /* A copy of the shipped rule, including the absence: `.pb-wave` is a box and an ink colour now, with no reveal clip and no transform-origin, because the row has no entrance on it. The variants that animate write their own `clip-path` and `transform` from script, so they still measure what they measured — this page exists to price drawings, not to flatter the current one. */ .pb-wave { position: absolute; inset: 0 0 var(--pb-loop-lane, 0px); pointer-events: none; color: var(--text-faint); } /* The row's first entrance: a lane of path per slice, animated in each layer. `ship` measures this, so it stays — a baseline has to be the drawing that was actually on the page. The second entrance (a reveal clip and a `scaleY` rise, both on this wrapper) is `now`; the row that ships is `static3`, which is the same three paths with nothing animating. */ @keyframes pb-wave-enter { from { transform: scaleY(0); opacity: 0; } } .pb-wave-fresh { fill: currentColor; transform-box: view-box; transform-origin: 50% 50%; animation: pb-wave-enter 700ms cubic-bezier(0.25, 0.6, 0.25, 1) both; } .pb-wave-played { position: absolute; z-index: 2; inset: 0; color: var(--accent); clip-path: inset(0 calc((1 - var(--pb-fill, 0)) * 100%) 0 0); transition: clip-path var(--pb-smooth, var(--pb-tick, 250ms)) linear; } .pb-wave-loop { color: var(--loop); clip-path: inset( 0 calc((1 - var(--pb-loop-end, 1)) * 100%) 0 calc(var(--pb-loop-start, 0) * 100%) ); } .pb-wave-loop[data-origin="detected"] { color: var(--detected); } .pb-wave-svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; overflow: visible; } .pb-wave-path { fill: currentColor; } /* Copied from App.css, because the strip's look is part of what is being judged. */ .pbar { display: flex; flex-direction: column; gap: 2px; } .pb-wave { position: absolute; inset: 0; overflow: hidden; pointer-events: none; color: var(--text-faint); transform-origin: 50% 50%; } .pb-wave[data-idle] { color: color-mix(in oklab, var(--text-faint) 28%, transparent); } .pb-seek-wrap:hover .pb-wave, .pb-seek-wrap:focus-within .pb-wave { color: color-mix(in oklab, var(--text-faint) 55%, var(--text)); } .pb-wave-svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; } .pb-wave-path { fill: currentColor; } .pb-wave-played { position: absolute; z-index: 2; inset: 0; color: var(--accent); clip-path: inset(0 calc((1 - var(--pb-fill, 0)) * 100%) 0 0); transition: clip-path var(--pb-smooth, var(--pb-tick, 250ms)) linear; } .pb-wave-caret { position: absolute; top: 0; bottom: 0; left: calc(var(--pb-fill, 0) * 100%); width: 1px; background: var(--accent); transition: left var(--pb-smooth, var(--pb-tick, 250ms)) linear; } .wavebench-no-smooth .pb-wave-played, .wavebench-no-smooth .pb-wave-caret { transition: none; } .pb-loop-region { --pb-edge-ink: var(--loop); --pb-edge-w: 2px; --pb-region-tint: 20%; --pb-bracket-w: 1px; --pb-bracket-arm: 4px; --pb-edge-pattern: none; position: absolute; inset-block: 0; left: calc(var(--pb-loop-start, 0) * 100%); width: calc(var(--pb-loop-width, 0) * 100%); background-color: color-mix( in oklab, var(--pb-edge-ink) var(--pb-region-tint), transparent ); background-image: var(--pb-edge-pattern), var(--pb-edge-pattern); background-position: left, right; background-size: var(--pb-edge-w) 100%; background-repeat: no-repeat; } .pb-loop-region::before, .pb-loop-region::after { content: ""; z-index: 3; position: absolute; top: 0; bottom: 0; width: var(--pb-bracket-arm); border: var(--pb-bracket-w) solid var(--pb-edge-ink); } .pb-loop-region::before { left: 0; border-inline-end: 0; } .pb-loop-region::after { right: 0; border-inline-start: 0; } .pb-loop-region:where([data-edge]:not([data-edge="brackets"]))::before, .pb-loop-region:where([data-edge]:not([data-edge="brackets"]))::after { content: none; } /* Teeth (the arms on the ends) and stroke, each a single custom property on the shipped rule, so the next look sheet is a screenshot run rather than a rewrite. `content: ""` re-enables the pseudos for these: they are brackets with different proportions, not one of the named alternatives, and the rule above cannot tell the two apart. */ .pb-loop-region[data-edge][data-edge^="brackets-"]::before, .pb-loop-region[data-edge][data-edge^="brackets-"]::after { content: ""; } .pb-loop-region[data-edge="brackets-arm3"] { --pb-bracket-arm: 3px; } .pb-loop-region[data-edge="brackets-arm4"] { --pb-bracket-arm: 4px; } .pb-loop-region[data-edge="brackets-arm5"] { --pb-bracket-arm: 5px; } .pb-loop-region[data-edge="brackets-w1"] { --pb-bracket-w: 1px; } .pb-loop-region[data-edge="brackets-w15"] { --pb-bracket-w: 1.5px; } .pb-loop-region[data-edge="brackets-w2"] { --pb-bracket-w: 2px; } .pb-loop-region[data-edge="brackets-slim"] { --pb-bracket-arm: 4px; --pb-bracket-w: 1px; } .pb-loop-region[data-edge="brackets-slim5"] { --pb-bracket-arm: 5px; --pb-bracket-w: 1px; } .pb-loop-region[data-edge="brackets-slim15"] { --pb-bracket-arm: 5px; --pb-bracket-w: 1.5px; } .pb-loop-region[data-origin="detected"] { --pb-edge-ink: var(--detected); } .pb-loop-region[data-edge="caps"] { --pb-edge-pattern: linear-gradient( to bottom, var(--pb-edge-ink) 0 6px, transparent 6px calc(100% - 6px), var(--pb-edge-ink) calc(100% - 6px) ); } .pb-loop-region[data-edge="rects"] { --pb-edge-pattern: repeating-linear-gradient( to bottom, var(--pb-edge-ink) 0 5px, transparent 5px 8px ); } .pb-loop-region[data-edge="solid"] { --pb-edge-pattern: linear-gradient(var(--pb-edge-ink), var(--pb-edge-ink)); } .pb-loop-region[data-edge="spine"] { --pb-edge-pattern: linear-gradient( to bottom, var(--pb-edge-ink) 0 6px, color-mix(in oklab, var(--pb-edge-ink) 38%, transparent) 6px calc(100% - 6px), var(--pb-edge-ink) calc(100% - 6px) ); } .pb-loop-region[data-edge="ticks"] { --pb-edge-pattern: repeating-linear-gradient( to bottom, var(--pb-edge-ink) 0 3px, transparent 3px 6px ); } /* The treatment that is not a pair of verticals: the boundary moves out of the row and into a lane beneath the wave. Copied from `App.css` so the sheet can be looked at before it is decided — the lane's 5 px and the rail's 3 px are the two numbers worth screenshotting against each other. */ .pb-loop-region[data-edge="bar"] { --pb-bar-h: 3px; --pb-bar-cap: 2px; } .pb-loop-region[data-edge="bar"]::before { content: ""; z-index: 3; top: auto; right: 0; bottom: 0; left: 0; width: auto; height: var(--pb-bar-h); border: 0; background-image: linear-gradient( to right, var(--pb-edge-ink) 0 var(--pb-bar-cap), color-mix(in oklab, var(--pb-edge-ink) 62%, transparent) var(--pb-bar-cap) calc(100% - var(--pb-bar-cap)), var(--pb-edge-ink) calc(100% - var(--pb-bar-cap)) ); } .pb-seek-wrap[data-loop-edge="bar"] { --pb-loop-lane: 5px; } .pb-seek-wrap[data-loop-edge="bar"] .pb-loop-caret { inset-block-end: calc(var(--pb-loop-lane) + 1px); } /* The knob's own vocabulary, plus the candidates that were measured and not shipped. `ticks` is in the knob too, and it is here to be looked at: the same rhythm with square marks is what the rectangles are replacing. */ .pb-loop-region[data-edge="squares"] { --pb-edge-pattern: repeating-linear-gradient( to bottom, var(--pb-edge-ink) 0 3px, transparent 3px 6px ); } .pb-loop-region[data-edge="bars-bright"] { --pb-edge-ink: color-mix(in oklab, var(--loop) 78%, white); --pb-edge-pattern: repeating-linear-gradient( to bottom, var(--pb-edge-ink) 0 3px, transparent 3px 6px ); } /* Candidate edges for the region, painted the same way so only the rhythm differs: two columns of ink, one at each end, from a gradient. `solid` is what ships today. */ .pb-loop-region[data-edge="caps"] { --pb-edge-pattern: linear-gradient( to bottom, var(--pb-edge-ink) 0 6px, transparent 6px calc(100% - 6px), var(--pb-edge-ink) calc(100% - 6px) ); } .pb-loop-region[data-edge="rects"] { --pb-edge-pattern: repeating-linear-gradient( to bottom, var(--pb-edge-ink) 0 5px, transparent 5px 8px ); } .pb-loop-region[data-edge="solid"] { --pb-edge-pattern: linear-gradient(var(--loop), var(--loop)); } .pb-loop-region[data-edge="bars-3-6"] { --pb-edge-pattern: repeating-linear-gradient( to bottom, var(--loop) 0 3px, transparent 3px 6px ); } .pb-loop-region[data-edge="bars-2-3"] { --pb-edge-pattern: repeating-linear-gradient( to bottom, var(--loop) 0 2px, transparent 2px 5px ); } .pb-loop-region[data-edge="bars-taper"] { --pb-edge-pattern: repeating-linear-gradient( to bottom, var(--loop) 0 2px, transparent 2px 4px, var(--loop) 4px 8px, transparent 8px 10px ); } .pb-loop-region[data-edge="caps"] { --pb-edge-pattern: linear-gradient( to bottom, var(--loop) 0 5px, transparent 5px calc(100% - 5px), var(--loop) calc(100% - 5px) ); } .pb-loop-region[data-edge="dashed"] { --pb-edge-pattern: none; border-inline: 2px dashed var(--loop); } .pb-loop-region[data-edge="bars-spine"] { --pb-edge-pattern: repeating-linear-gradient( to bottom, var(--loop) 0 3px, transparent 3px 6px ); border-inline: 1px solid color-mix(in oklab, var(--loop) 45%, transparent); } .pb-loop-region[data-origin="detected"][data-edge], .pb-loop-region[data-origin="detected"][class] { --pb-edge-ink: var(--detected); } .pb-loop-caret { position: absolute; inset-block: 3px; left: calc(var(--pb-loop-at, 0) * 100%); width: 2px; background: var(--loop); } .pb-seek::-webkit-slider-runnable-track, .pb-volume::-webkit-slider-runnable-track { height: 2px; background-color: var(--text-faint); } .pb-seek::-webkit-slider-runnable-track { background-color: transparent; } .pb-volume::-webkit-slider-runnable-track { background-image: linear-gradient(var(--accent), var(--accent)); background-repeat: no-repeat; background-size: calc(var(--pb-fill, 0) * 100%) 100%; } .pb-seek::-webkit-slider-thumb { -webkit-appearance: none; width: 0; background: transparent; border: 0; } .pb-volume::-webkit-slider-thumb { -webkit-appearance: none; width: 2px; height: 11px; margin-top: -4px; background: var(--text-strong); border: 0; border-radius: 1px; } .pb-seek::-moz-range-track { height: 2px; background: transparent; } .pb-seek::-moz-range-progress { height: 2px; background: transparent; } .pb-seek::-moz-range-thumb { width: 0; height: 11px; background: transparent; border: 0; } </style> </head> <body> <div id="stage"></div> <script type="module" src="./bench.js"></script> </body></html>