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/spheres/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/spheres/web')
| -rw-r--r-- | examples/spheres/web/icon-192.png | bin | 0 -> 12407 bytes | |||
| -rw-r--r-- | examples/spheres/web/icon-512.png | bin | 0 -> 49109 bytes | |||
| -rw-r--r-- | examples/spheres/web/icon.svg | 28 |
3 files changed, 28 insertions, 0 deletions
diff --git a/examples/spheres/web/icon-192.png b/examples/spheres/web/icon-192.png Binary files differnew file mode 100644 index 0000000..2a47f3d --- /dev/null +++ b/examples/spheres/web/icon-192.png diff --git a/examples/spheres/web/icon-512.png b/examples/spheres/web/icon-512.png Binary files differnew file mode 100644 index 0000000..fb096b8 --- /dev/null +++ b/examples/spheres/web/icon-512.png diff --git a/examples/spheres/web/icon.svg b/examples/spheres/web/icon.svg new file mode 100644 index 0000000..7ed8bf8 --- /dev/null +++ b/examples/spheres/web/icon.svg @@ -0,0 +1,28 @@ +<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"> + <!-- spheres' icon: the figure-eight orbit, its three bodies glowing in + their 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> + <filter id="glow" x="-1" y="-1" width="3" height="3"> + <feGaussianBlur stdDeviation="14"/> + </filter> + <linearGradient id="orbit" gradientUnits="userSpaceOnUse" x1="76" y1="0" x2="436" y2="0"> + <stop offset="0" stop-color="#ffcc59"/> + <stop offset="0.5" stop-color="#ff73d1"/> + <stop offset="1" stop-color="#66d9ff"/> + </linearGradient> + </defs> + <rect width="512" height="512" fill="#05070d"/> + <!-- the figure eight --> + <path d="M256 256 C 300 196 436 176 436 256 C 436 336 300 316 256 256 C 212 196 76 176 76 256 C 76 336 212 316 256 256 Z" + fill="none" stroke="url(#orbit)" stroke-width="10" opacity="0.8"/> + <!-- the bodies: glow, then core --> + <g filter="url(#glow)"> + <circle cx="398" cy="205" r="30" fill="#66d9ff"/> + <circle cx="140" cy="307" r="30" fill="#ff73d1"/> + <circle cx="256" cy="256" r="30" fill="#ffcc59"/> + </g> + <circle cx="398" cy="205" r="15" fill="#e6f8ff"/> + <circle cx="140" cy="307" r="15" fill="#ffe6f6"/> + <circle cx="256" cy="256" r="15" fill="#fff4dc"/> +</svg> |
