Apr 25, 2025
The Circle is Moving!
We’re now animating the screen at 60fps using wayland’s frame callbacks:
here is the associated program that is driving that animation:
(stroke 1 (rgb 1 0.1 0.1)
(circle (point
(+ 200 (* 50 (sin (/ (now) 600.0))))
(+ 200 (* 77 (cos (/ (now) 533.0)))))
50))
Worm
(stroke 10 (rgb 1 0.1 0.1)
(path (moveto (point 50 50))
(curveto
(point 200 (+ 200 (* 100 (sin (/ (now) 100.0)))))
(point 300 (+ 300 (* (- 0 100) (sin (/ (now) 100.0)))))
(point 450 450)))