racket / htdp

Other
91 stars 69 forks source link

Fractional pen width should be allowed #210

Closed ccshan closed 10 months ago

ccshan commented 10 months ago

According to the documentation, the following code should succeed because the width of a pen just needs to be (and/c real? (<=/c 0 255)):

(require 2htdp/image)
(circle 50 "outline" (pen "red" 1.5 "solid" "round" "round"))

But I get pen: expects an integer between 0 and 255 as second argument, given 1.5

rfindler commented 10 months ago

Thanks!