tiny code christmas

tcc.lovebyte.party: an advent calendar of graphics-oriented programming exercises constrained by small virtual machines like the PICO-8 (wikipedia.org). and size limits (128 or 256 bytes of source code.)

a handful of the challenges were completed using Fennel (fennel-lang.org) — the best, visually, is given here.

(macro o [c]
  `(print ,c (rnd 127) (rnd 127)))

(macro c [y r]
  `(circfill 64 ,y ,r 6))

(fn _draw []
  (cls 1)
  (rectfill 0 84 127 127 5)
  (c 90 14)
  (c 75 10)
  (c 64 8)
  (o "*")
  (o ".")
  (print (.. "..\n  \f7-\f" (% (flr (t)) 3) "*") 64 56 0))