Skip to content

Commit 19e7b89

Browse files
committed
add a contract to colorize
1 parent ae298ae commit 19e7b89

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

pkgs/pict-pkgs/pict-lib/pict/main.rkt

+9-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,15 @@
77
(except-out (all-from-out "private/main.rkt")
88
pict->bitmap
99
pict->argb-pixels
10-
argb-pixels->pict)
11-
(contract-out
10+
argb-pixels->pict
11+
colorize)
12+
(contract-out
13+
[colorize (-> pict?
14+
(or/c string?
15+
(is-a?/c color%)
16+
(list/c byte? byte? byte?))
17+
pict?)]
18+
1219
[pict->bitmap (->* (pict?)
1320
((or/c 'unsmoothed 'smoothed 'aligned))
1421
(is-a?/c bitmap%))]

0 commit comments

Comments
 (0)