Compare commits
1 commit
feature/re
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0a6930dfc0 |
1 changed files with 4 additions and 4 deletions
|
|
@ -25,10 +25,10 @@
|
||||||
;; Get a raylib color vec from a color
|
;; Get a raylib color vec from a color
|
||||||
(define (use-color col)
|
(define (use-color col)
|
||||||
(assert (color? col))
|
(assert (color? col))
|
||||||
(u8vector (floor (* 255 (color-r col)))
|
(u8vector (number->integer (* 255 (color-r col)))
|
||||||
(floor (* 255 (color-g col)))
|
(number->integer (* 255 (color-g col)))
|
||||||
(floor (* 255 (color-b col)))
|
(number->integer (* 255 (color-b col)))
|
||||||
(floor (* 255 (color-a col)))))
|
(number->integer (* 255 (color-a col)))))
|
||||||
|
|
||||||
;; Type safe color constructor
|
;; Type safe color constructor
|
||||||
(define (make-color r g b a)
|
(define (make-color r g b a)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue