9.3

1 Getting Started🔗

animate is the headless semantic language: it constructs immutable Scenes and samples them at arbitrary times. A minimal executable example is "examples/moving-circle.rkt".

(require animate)
 
(define dot
  (circle #:id 'dot #:center (vec2 -2 0) #:radius 1 #:fill "tomato"))
(define scene
  (scene-play
   (scene-add (make-scene) dot)
   (move-to dot (vec2 2 0))
   #:duration 2))
 
(scene-sample scene 1)

This creates no window and writes no files. Add animate/render only when final frame or media output is wanted.