Rotate logic gate sprites based on direction.

This commit is contained in:
Juliana Sims 2024-05-23 16:08:25 -04:00 committed by David Thompson
parent 00df10dc12
commit bb4d2df5f5
5 changed files with 33 additions and 5 deletions

View file

@ -19,15 +19,15 @@
;;; Code:
(define-module (math)
#:pure
#:use-module (scheme base)
#:use-module (hoot ffi)
#:export (random clamp))
#:export (random pi clamp))
(define-foreign random
"math" "random"
-> f64)
(define pi (* 4.0 (atan 1.0)))
(define (clamp x min max)
(cond ((< x min) min)
((> x max) max)