htdp
htdp copied to clipboard
dc<%> error for (make-circle 8675309)
If I try to make a very large image with 2htdp/image, I get an error from the dc<%> interface.
I wish the error came from the 2htdp/imagefunction & told me the size limit for my machine.
Here's an example program. Your size for "too large" may vary -- I had a student with a Dell laptop that could draw this circle.
(require 2htdp/image)
(circle 20000 "solid" "HotPink")
;; erase in dc<%>: drawing context is not ok: (instantiate (class ...) ...)
It may be that there are some calls to ok? that are missing that could at least be turned into a comprehensible error message (perhaps not with the size limit).