diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-17 00:15:15 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-17 12:15:01 -0300 |
| commit | 9bd77e54943d954291b5faef287ccca5dcebd7a4 (patch) | |
| tree | 3f2d628781441568620b8108fab920713f26f649 /examples/micscope/web | |
| parent | e997fc3e6b312b30f5af90012fc22365bab701d4 (diff) | |
| download | sketchbook-9bd77e54943d954291b5faef287ccca5dcebd7a4.tar.gz sketchbook-9bd77e54943d954291b5faef287ccca5dcebd7a4.zip | |
examples: micscope and spheres come home, as they were, building
Both lived outside any repository, beside sketchbook, with manifests that
pointed at ../01-drat-meout/lib/sketchbook, which no longer exists. They
are copied into examples/micscope and examples/spheres (their sources,
shaders, tests, test material and web icons; not their caches, builds,
packages, state files or .gitignore, which the root's covers), their
manifests depend on "../.." as the other examples do, and their
READMEs link sketchbook there. Nothing else changed: both build against
today's library and pass their own zig build test (micscope 62/62 steps,
11/11 tests, its transport, record, render and tuner scripts; spheres
75/75 steps, 3/3 tests, its play script). The originals are untouched.
micscope's test/reference.flac (3.7 MiB, CC BY-SA 3.0, credited in its
test/README.md) is the rendering reference its render script opens. The
README lists both examples.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'examples/micscope/web')
| -rw-r--r-- | examples/micscope/web/icon-192.png | bin | 0 -> 4204 bytes | |||
| -rw-r--r-- | examples/micscope/web/icon-512.png | bin | 0 -> 9911 bytes | |||
| -rw-r--r-- | examples/micscope/web/icon.svg | 26 |
3 files changed, 26 insertions, 0 deletions
diff --git a/examples/micscope/web/icon-192.png b/examples/micscope/web/icon-192.png Binary files differnew file mode 100644 index 0000000..0b26078 --- /dev/null +++ b/examples/micscope/web/icon-192.png diff --git a/examples/micscope/web/icon-512.png b/examples/micscope/web/icon-512.png Binary files differnew file mode 100644 index 0000000..0b5538c --- /dev/null +++ b/examples/micscope/web/icon-512.png diff --git a/examples/micscope/web/icon.svg b/examples/micscope/web/icon.svg new file mode 100644 index 0000000..1220011 --- /dev/null +++ b/examples/micscope/web/icon.svg @@ -0,0 +1,26 @@ +<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"> + <!-- micscope's icon: a waveform over its spectrogram's harmonics, in the + app's colours. Full-bleed, so it also works masked. Rendered to the + PNGs beside it with: resvg -w N -h N icon.svg icon-N.png --> + <defs> + <linearGradient id="heat" gradientUnits="userSpaceOnUse" x1="96" y1="0" x2="416" y2="0"> + <stop offset="0" stop-color="#2b0a4a"/> + <stop offset="0.25" stop-color="#b8325a"/> + <stop offset="0.6" stop-color="#f98c0a"/> + <stop offset="1" stop-color="#fcf3a6"/> + </linearGradient> + </defs> + <rect width="512" height="512" fill="#0b0c0f"/> + <!-- harmonics: a fundamental and its overtones, fading --> + <g stroke="url(#heat)" stroke-linecap="round"> + <line x1="96" y1="392" x2="416" y2="392" stroke-width="22"/> + <line x1="96" y1="340" x2="416" y2="340" stroke-width="16" opacity="0.85"/> + <line x1="96" y1="300" x2="416" y2="300" stroke-width="11" opacity="0.65"/> + <line x1="96" y1="270" x2="416" y2="270" stroke-width="7" opacity="0.45"/> + </g> + <!-- the waveform --> + <path d="M96 176 C120 96 152 96 176 176 S232 256 256 176 S312 96 336 176 S392 256 416 176" + fill="none" stroke="#6fdc8c" stroke-width="18" stroke-linecap="round"/> + <!-- the tuner's needle --> + <rect x="246" y="76" width="20" height="356" rx="10" fill="#ffd84d" opacity="0.9"/> +</svg> |
