9.3

2 Source Programs🔗

animate/authoring makes source-block metadata an immutable declaration. It stays headless, so programs can be loaded and inspected in a batch environment. The complete tested example is "examples/source-block-hot-reload.rkt".

(require animate
         animate/authoring)
 
(define-scene-program introduction
  #:initial (make-scene)
  (scene-block setup (scene)
    (scene-add scene (circle #:id 'dot #:radius 1)))
  (scene-block pause (scene)
    (scene-wait scene 1)))

Each block consumes and returns an immutable Scene. The compiler retains checkpoints and source locations for reliable reload diagnostics.