9.3
56.10 Moving the camera
Move the view without changing the coordinates of the objects.
procedure
(camera-shake [ #:amplitude amplitude #:samples samples #:seed seed #:decay decay]) → succession-animation-request? amplitude : (and/c finite-real? (>=/c 0)) = 1/10 samples : exact-positive-integer? = 12 seed : exact-integer? = 0 decay : (or/c 'none 'linear 'smooth) = 'linear
Constructs an eager succession of primary-camera camera-pan-by
requests from a local deterministic pseudo-random offset plan. The plan begins
and ends at zero, and each leaf is the difference of consecutive offsets, so
the camera’s exact final center equals its clip-start center. The explicit
seed is the complete source of variation; no global random state is
read or changed. #:decay controls the finite offset envelope.