summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md13
1 files changed, 11 insertions, 2 deletions
diff --git a/README.md b/README.md
index be85565..ea7b1e6 100644
--- a/README.md
+++ b/README.md
@@ -391,8 +391,17 @@ update does (`examples/noc`: `koch`, `lsystem`, `quadtree`).
`draw`s the views given rects for: the last seconds as a scrolling waveform
and spectrogram, the smoothed spectrum of the newest samples, and an
oscilloscope. All analysed and drawn on the GPU, new columns only; its
-shaders swap to WGSL for the web like any others. Lifted from micscope's
-live view; spheres uses it.
+shaders swap to WGSL for the web like any others. Given `.camera`, the
+rects are world rects: the views are made at their size there and drawn
+through the camera, so panning or zooming recomputes nothing. A sketch
+that analyses buffers of its own runs the same shaders:
+`scope.kernels.{waveform, spectrogram, spectrum}` over any read-only
+buffer of samples, `scope.pipelines.{wave, spectrogram, spectrum}` to
+draw them, with the parameter and view blocks in `scope.layouts`
+(`Scope.gpu.tape` is a Scope's own history on the GPU, for a kernel of
+the sketch's). `scope.midi(hz, a4)`, `scope.hz(note, a4)` and
+`scope.note_names` name pitches. Lifted from micscope's live view;
+spheres uses it.
**Vector graphics**, in the `vector` module (import `sb.modules.vector`):
SVG parsing (the static subset Typst emits, and more) into cubic Bézier