racket / pict

Other
15 stars 20 forks source link

infinite width pict #83

Open rfindler opened 9 months ago

rfindler commented 9 months ago

The contract on pict-width doesn't rule out picts with +inf.0 as the width, but it does break various things, including scribble's rendering of picts. Here's one way such a pict can be created. Probably the best thing is to add more checking on functions like inset and also to update the contracts in the docs on functions like pict-width.

> (pict-width (inset (blank 10 10) +inf.0))
+inf.0