File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
pict-doc/pict/scribblings Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -288,7 +288,8 @@ override settings supplied by the context.
288
288
@defproc*[([(ellipse [w real?] [h real?]) pict?]
289
289
[(circle [diameter real?]) pict?]
290
290
[(filled-ellipse [w real?] [h real?] [#:draw-border? draw-border? any/c #t ]) pict?]
291
- [(disk [diameter real?] [#:draw-border? draw-border? any/c #t ]) pict?])]{
291
+ [(disk [diameter (and/c rational? (not/c negative?))]
292
+ [#:draw-border? draw-border? any/c #t ]) pict?])]{
292
293
293
294
Unfilled and filled ellipses.
294
295
Original file line number Diff line number Diff line change 9
9
pict->argb-pixels
10
10
argb-pixels->pict
11
11
colorize
12
- pin-under pin-over)
12
+ pin-under pin-over disk )
13
13
(contract-out
14
14
[colorize (-> pict?
15
15
(or/c string?
43
43
real?
44
44
(-> pict? pict? (values real? real?)))]
45
45
[pict pict?])
46
- [result pict?])]))
46
+ [result pict?])]
47
+ [disk (->* ((and/c rational? (not/c negative?))) (#:draw-border? any/c) pict?)]))
47
48
48
49
(define (multiple-of-four-bytes? b)
49
50
(zero? (modulo (bytes-length b) 4 )))
You can’t perform that action at this time.
0 commit comments