summaryrefslogtreecommitdiff
path: root/test/scene_compiled.script
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-17 07:59:59 -0300
committerGabriel Schneider <[email protected]>2026-11-17 12:15:01 -0300
commitfb237529724ae1c01b15f99e3b25bdce7c77cf82 (patch)
tree5402d604d88b6b6fb0f2ef4f1eba673bfb955b12 /test/scene_compiled.script
parent4350e6840940da0b7af800faf5a1455a1de1908e (diff)
downloadsketchbook-fb237529724ae1c01b15f99e3b25bdce7c77cf82.tar.gz
sketchbook-fb237529724ae1c01b15f99e3b25bdce7c77cf82.zip
examples/live: square units, x and y from the centre in half the height
picture.frag gives the tape x and y in half the target's height, 0 at its centre and y up (`y` -1 to 1, `x` -1.78 to 1.78 on 16:9), so a circle is round on any window, half resolution included. Lang.builtins and the README's table say so; the README's program draws its ring about the centre (`r = sqrt(x * x + y * y)`, the ring's radius and width doubled into the new unit). Test: test/live.script replaces the text (`%`, `c`) with a disc of radius 0.5, `step(x * x + y * y, 0.25)`, and reads its edge 180 pixels from the centre across and up: white at 170, black at 190, each way. zig build test: 85 of 85 steps. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'test/scene_compiled.script')
0 files changed, 0 insertions, 0 deletions