add rubber band for camera

This commit is contained in:
2026-11-08 12:08:56 +03:00
parent c528e9577d
commit 070e4e5552
4 changed files with 79 additions and 40 deletions

View File

@@ -8,3 +8,10 @@
(pub defmacro (tag-type sum-type)
`(enum ,(cat sum-type 'ǂ)))
(pub defmacro (clamp val lo hi)
`(do (if (< ,val ,lo)
(= ,val ,lo))
(if (> ,val ,hi)
(= ,val ,hi))))