[racket] confusing graphics primitives in 2htdp/image

From: Stephen Bloch (webmaster at ostgardr.org)
Date: Fri Jun 25 11:12:53 EDT 2010

There are a whole lot of graphics operations in 2htdp/image, and many  
of them come in pairs: overlay/xy and place-image, add-line and scene 
+line, add-curve and scene+curve, etc. that differ mainly in whether  
or not they crop the result to the bounding box of one of the  
images.  (They sometimes differ in how they interpret coordinates --  
whether measured from the center or the top-left of one of the  
images.)  Since the disappearance of pinholes, the "scene" datatype  
doesn't serve much purpose any more.  Would it make sense to use a  
consistent and compositional naming scheme, e.g. add-line/crop, add- 
curve/crop, etc?

Stephen Bloch
sbloch at adelphi.edu



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20100625/3c22b080/attachment.html>

Posted on the users mailing list.