summaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-10 12:53:22 -0300
committerGabriel Schneider <[email protected]>2026-11-12 13:22:02 -0300
commit45f705a5e590c3dfddc0a544e66beb9bf6205a4d (patch)
treec98d19a1b2dfc4808a46b41cf1b931703ff467b1 /README.md
parentf8d3a32f4f995eeb7e162b0702998b0565c11e4e (diff)
downloadsketchbook-45f705a5e590c3dfddc0a544e66beb9bf6205a4d.tar.gz
sketchbook-45f705a5e590c3dfddc0a544e66beb9bf6205a4d.zip
sketchbook: text rasterized at one scale and drawn at another (f.textScaled), steady under a moving camera
Diffstat (limited to 'README.md')
-rw-r--r--README.md8
1 files changed, 8 insertions, 0 deletions
diff --git a/README.md b/README.md
index 6062e60..e4718af 100644
--- a/README.md
+++ b/README.md
@@ -118,6 +118,14 @@ bytes)` measures it. The three mono faces advance alike (0.6 em: whole
pixels at 25, 30, 35, 45 and 60 px and at their doubles), so columns of
text need no measuring. The web host draws every face as its one.
+Text is shaped for the size it is drawn at, so under a camera that zooms
+its letters would shift against each other from frame to frame.
+`f.textScaled(face, x, y, scale, raster, bytes, color)` lays the line out
+and rasterizes it at `raster` and draws that at `scale`, unsnapped: give it
+the scale the move ends on (the larger of its ends) while the camera
+moves, and `textIn` again once it rests. One texture serves the whole
+move. The web host ignores `raster`.
+
`f.openFile("open", .{ .pattern = "wav;flac" })` shows the system's file
dialog; the answer comes back as the console line `open <path>`, so it
reaches the sketch's `command` like anything typed there. `f.run(line)`