We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ceabcd1 + baa38a7 commit 3d2f9a0Copy full SHA for 3d2f9a0
bitmap/digitama/base.rkt
@@ -3,6 +3,7 @@
3
(provide (all-defined-out))
4
5
(define-type Color (U Symbol Integer FlColor))
6
+(define-predicate color? Color)
7
8
(struct paint () #:transparent #:type-name Paint)
9
(struct flcolor () #:transparent #:type-name FlColor)
bitmap/digitama/source.rkt
@@ -25,8 +25,8 @@
25
(define fill-paint->source : (-> Fill-Paint Bitmap-Source)
26
(lambda [paint]
27
(cond [(bitmap? paint) (bitmap-surface paint)]
28
- [(bitmap-pattern? paint) paint]
29
- [else (rgb* paint)])))
+ [(color? paint) (rgb* paint)]
+ [else paint])))
30
31
(define fill-paint->source* : (-> (Option Fill-Paint) (Option Bitmap-Source))
32
0 commit comments