add a contract to colorize

This commit is contained in:
Robby Findler 2014-05-15 22:16:50 -05:00
parent ae298ae353
commit 19e7b89886

View File

@ -7,8 +7,15 @@
(except-out (all-from-out "private/main.rkt") (except-out (all-from-out "private/main.rkt")
pict->bitmap pict->bitmap
pict->argb-pixels pict->argb-pixels
argb-pixels->pict) argb-pixels->pict
colorize)
(contract-out (contract-out
[colorize (-> pict?
(or/c string?
(is-a?/c color%)
(list/c byte? byte? byte?))
pict?)]
[pict->bitmap (->* (pict?) [pict->bitmap (->* (pict?)
((or/c 'unsmoothed 'smoothed 'aligned)) ((or/c 'unsmoothed 'smoothed 'aligned))
(is-a?/c bitmap%))] (is-a?/c bitmap%))]