View Problem Report: 10969
Audit Trail:
From: Robby Findler <robby at eecs.northwestern.edu>
To: bugs <bugs at racket-lang.org>, Matthew Flatt <mflatt at cs.utah.edu>
Cc: Ian Barland <ibarland at radford.edu>,
Matthias Felleisen <matthias at ccs.neu.edu>
Subject: Re: [plt-bug] all/10969: place-image in empty-scene from 2htdp
doesn't draw the outline properly
Date: Wed, 9 Jun 2010 23:23:27 -0500
On the mac, this looks slightly more reasonable, namely the outline
becomes a dimmer color after the place-image. The issue: this is a
rectangle drawn with a 1 thickness black pen that is cropped to the
bounding box of the rectangle which apparently draws differently under
windows than the mac (and, I think, linux, but I didn't double check).
Is this just something where the behavior under windows is going to be
different than on the mac?
Robby
On Wed, Jun 9, 2010 at 9:36 PM, <justin at zamora.com> wrote:
> A new problem report is waiting at
> =C2=A0http://bugs.racket-lang.org/query/?cmd=3Dview&pr=3D10969
>
> Reported by Justin Zamora for release: 5.0
>
> *** Description:
> The following code should draw a red circle in the center of a white box =
with a black outline. =C2=A0However, it doesn't draw the right and bottom s=
ides of the outline. =C2=A0The code works properly using htdp/image instead=
of 2htdp/image.
>
> (require 2htdp/image)
> (place-image (circle 20 "solid" "red") 50 50 (empty-scene 100 100))
>
> *** How to repeat:
>
>
> *** Environment:
> windows "Windows NT 5.1 (Build 2600) Service Pack 3" (win32\i386\3m) (get=
-display-depth) =3D 32
> Human Language: english
> (current-memory-use) 147698556
>
> Collections:
> (("C:\\Documents and Settings\\Administrator\\Application Data\\Racket\\5=
.0\\collects" non-existent-path) ("C:\\Program Files\\Racket\\collects" "2h=
tdp" "afm" "algol60" "at-exp" "browser" "combinator-parser" "compiler" "con=
fig" "defaults" "deinprogramm" "drracket" "drscheme" "dynext" "embedded-gui=
" "eopl" "errortrace" "ffi" "file" "framework" "frtime" "games" "graphics" =
"gui-debugger" "help" "hierlist" "htdp" "html" "icons" "info-domain" "lang"=
"launcher" "lazy" "macro-debugger" "make" "mred" "mrlib" "mysterx" "mzcom"=
"mzlib" "mzscheme" "net" "openssl" "parser-tools" "plai" "planet" "plot" "=
preprocessor" "profile" "r5rs" "r6rs" "racket" "racklog" "rackunit" "raco" =
"reader" "readline" "redex" "rnrs" "s-exp" "scheme" "schemeunit" "scribble"=
"scribblings" "scriblib" "setup" "sgl" "slatex" "slideshow" "srfi" "steppe=
r" "string-constants" "swindle" "syntax" "syntax-color" "teachpack" "test-b=
ox-recovery" "test-engine" "tex2page" "texpict" "trace" "typed" "typed-sche=
me" "unstable" "!
> =C2=A0version" "web-server" "wxme" "xml"))
> Computer Language: (("Teaching Languages" "How to Design Programs" "Begin=
ning Student") (#(#t constructor repeating-decimal #f #t none) #f ()))
>
>
Responsible changed from "nobody" to "robby" by robby at Sat, 11 Sep 2010 09:28:37 -0400
Reason>>> rbf
State changed from "open" to "closed" by robby at Sat, 11 Sep 2010 09:28:37 -0400
Reason>>> fixed.
Thanks for the report.
From: Izzet Pembeci <pembeci at gmail.com>
To: justin at zamora.com, bugs at racket-lang.org, mflatt at racket-lang.org,
sk at racket-lang.org, robby at racket-lang.org
Cc:
Subject: Re: htdp/10969: place-image in empty-scene from 2htdp doesn't draw
the outline properly
Date: Thu, 21 Oct 2010 16:45:49 +0300
--0022152d614962162e049320bef4
Content-Type: text/plain; charset=ISO-8859-1
This is still an issue on Windows if we use "rectangle" instead of
"empty-scene" as in the following example from latest version of teachpack
manual:
(place-image/align (circle 8 "solid" "tomato") 32 32
"center" "center" (rectangle 32 32 "outline" "black")
))
"place-image" shows the same behavior. My racket version is :
5.0.2.1--2010-10-21.
I am also getting a "test : bad syntax" message.
iZzeT
%3Fcmd%3Dview%2520audit-trail%26database%3Ddefault%26pr%3D10969
--0022152d614962162e049320bef4
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
This is still an issue on Windows if we use "rectangle" instead o=
f "empty-scene" as in the following example from latest version o=
f teachpack manual:<br><br><table class=3D"RktBlk" cellspacing=3D"0"><tbody=
><tr>
<td><span class=3D"RktPn">(</span><span class=3D"RktSym"><a class=3D"RktVal=
Link">place-image/align</a></span><span class=3D"hspace">=A0</span><span cl=
ass=3D"RktPn">(</span><span class=3D"RktSym"><a class=3D"RktValLink">circle=
</a></span><span class=3D"hspace">=A0</span><span class=3D"RktVal">8</span>=
<span class=3D"hspace">=A0</span><span class=3D"RktVal">"solid"</=
span><span class=3D"hspace">=A0</span><span class=3D"RktVal">"tomato&q=
uot;</span><span class=3D"RktPn">)</span></td>
</tr><tr><td><span class=3D"RktPlain"><span class=3D"hspace">=A0=A0=A0=A0</=
span></span><span class=3D"hspace">=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0=A0=A0=A0</span><span class=3D"RktVal">32</span><span class=3D"=
hspace">=A0</span><span class=3D"RktVal">32</span><span class=3D"hspace">=
=A0</span><span class=3D"RktVal">"center"</span><span class=3D"hs=
pace">=A0</span><span class=3D"RktVal">"center"</span></td>
</tr><tr><td><span class=3D"RktPlain"><span class=3D"hspace">=A0=A0=A0=A0</=
span></span><span class=3D"hspace">=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=
=A0=A0=A0=A0=A0=A0=A0</span><span class=3D"RktPn">(</span><span class=3D"Rk=
tSym"><a class=3D"RktValLink">rectangle</a></span><span class=3D"hspace">=
=A0</span><span class=3D"RktVal">32</span><span class=3D"hspace">=A0</span>=
<span class=3D"RktVal">32</span><span class=3D"hspace">=A0</span><span clas=
s=3D"RktVal">"outline"</span><span class=3D"hspace">=A0</span><sp=
an class=3D"RktVal">"black"</span><span class=3D"RktPn">)</span><=
span class=3D"RktPn">)</span><span class=3D"RktPn">)</span></td>
</tr></tbody></table><br>"place-image" shows the same behavior. M=
y racket version is : 5.0.2.1--2010-10-21.<br><br>I am also getting a "=
;test : bad syntax" message.<br><br>iZzeT<br><br>%3Fcmd%3Dview%2520aud=
it-trail%26database%3Ddefault%26pr%3D10969
--0022152d614962162e049320bef4--
From: Robby Findler <robby at eecs.northwestern.edu>
To: Izzet Pembeci <pembeci at gmail.com>
Cc: justin at zamora.com, bugs at racket-lang.org, mflatt at racket-lang.org,
sk at racket-lang.org
Subject: Re: htdp/10969: place-image in empty-scene from 2htdp doesn't draw
the outline properly
Date: Thu, 21 Oct 2010 09:44:18 -0500
--0016e659f7fe9369560493218fb8
Content-Type: text/plain; charset=UTF-8
That is by design. Please read this section of the docs:
http://pre.racket-lang.org/docs/html/teachpack/2htdpimage.html#%28part._nitty-gritty%29
Ideas for alternative designs welcome, of course.
Robby
On Thu, Oct 21, 2010 at 8:45 AM, Izzet Pembeci <pembeci at gmail.com> wrote:
> This is still an issue on Windows if we use "rectangle" instead of
> "empty-scene" as in the following example from latest version of teachpack
> manual:
>
> (place-image/align (circle 8 "solid" "tomato") 32
> 32 "center" "center" (rectangle 32 32 "outline"
> "black")))
> "place-image" shows the same behavior. My racket version is :
> 5.0.2.1--2010-10-21.
>
> I am also getting a "test : bad syntax" message.
>
> iZzeT
>
> %3Fcmd%3Dview%2520audit-trail%26database%3Ddefault%26pr%3D10969
--0016e659f7fe9369560493218fb8
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
That is by design. Please read this section of the docs:<br><br>=C2=A0 <a h=
ref=3D"http://pre.racket-lang.org/docs/html/teachpack/2htdpimage.html#%28pa=
rt._nitty-gritty%29">http://pre.racket-lang.org/docs/html/teachpack/2htdpim=
age.html#%28part._nitty-gritty%29</a><br>
<br>Ideas for alternative designs welcome, of course.<br><br>Robby<br><br><=
div class=3D"gmail_quote">On Thu, Oct 21, 2010 at 8:45 AM, Izzet Pembeci <s=
pan dir=3D"ltr"><<a href=3D"mailto:pembeci at gmail.com">pembeci at gmail.com<=
/a>></span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin: 0pt 0pt 0pt 0.8ex; borde=
r-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">This is still an =
issue on Windows if we use "rectangle" instead of "empty-sce=
ne" as in the following example from latest version of teachpack manua=
l:<br>
<br><table cellspacing=3D"0"><tbody><tr>
<td><span>(</span><span><a>place-image/align</a></span><span>=C2=A0</span><=
span>(</span><span><a>circle</a></span><span>=C2=A0</span><span>8</span><sp=
an>=C2=A0</span><span>"solid"</span><span>=C2=A0</span><span>&quo=
t;tomato"</span><span>)</span></td>
</tr><tr><td><span><span>=C2=A0=C2=A0=C2=A0=C2=A0</span></span><span>=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0</span><span>32</span><span>=C2=A0</=
span><span>32</span><span>=C2=A0</span><span>"center"</span><span=
>=C2=A0</span><span>"center"</span></td>
</tr><tr><td><span><span>=C2=A0=C2=A0=C2=A0=C2=A0</span></span><span>=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0</span><span>(</span><span><a>rectan=
gle</a></span><span>=C2=A0</span><span>32</span><span>=C2=A0</span><span>32=
</span><span>=C2=A0</span><span>"outline"</span><span>=C2=A0</spa=
n><span>"black"</span><span>)</span><span>)</span><span>)</span><=
/td>
</tr></tbody></table><br>"place-image" shows the same behavior. M=
y racket version is : 5.0.2.1--2010-10-21.<br><br>I am also getting a "=
;test : bad syntax" message.<br><br>iZzeT<br><br>%3Fcmd%3Dview%2520aud=
it-trail%26database%3Ddefault%26pr%3D10969
</blockquote></div><br>
--0016e659f7fe9369560493218fb8--
From: Robby Findler <robby at eecs.northwestern.edu>
To: Izzet Pembeci <pembeci at gmail.com>
Cc: justin at zamora.com, bugs at racket-lang.org, mflatt at racket-lang.org,
sk at racket-lang.org
Subject: Re: htdp/10969: place-image in empty-scene from 2htdp doesn't draw
the outline properly
Date: Thu, 21 Oct 2010 09:44:47 -0500
--0016364269814a97420493219150
Content-Type: text/plain; charset=UTF-8
PS: the test bad syntax message is a known problem and I hope to find time
to sort it out soon. Thanks for pointing it out.
Robby
On Thu, Oct 21, 2010 at 8:45 AM, Izzet Pembeci <pembeci at gmail.com> wrote:
> This is still an issue on Windows if we use "rectangle" instead of
> "empty-scene" as in the following example from latest version of teachpack
> manual:
>
> (place-image/align (circle 8 "solid" "tomato") 32
> 32 "center" "center" (rectangle 32 32 "outline"
> "black")))
> "place-image" shows the same behavior. My racket version is :
> 5.0.2.1--2010-10-21.
>
> I am also getting a "test : bad syntax" message.
>
> iZzeT
>
> %3Fcmd%3Dview%2520audit-trail%26database%3Ddefault%26pr%3D10969
--0016364269814a97420493219150
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
PS: the test bad syntax message is a known problem and I hope to find time =
to sort it out soon. Thanks for pointing it out.<br><br>Robby<br><br><div c=
lass=3D"gmail_quote">On Thu, Oct 21, 2010 at 8:45 AM, Izzet Pembeci <span d=
ir=3D"ltr"><<a href=3D"mailto:pembeci at gmail.com">pembeci at gmail.com</a>&g=
t;</span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin: 0pt 0pt 0pt 0.8ex; borde=
r-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">This is still an =
issue on Windows if we use "rectangle" instead of "empty-sce=
ne" as in the following example from latest version of teachpack manua=
l:<br>
<br><table cellspacing=3D"0"><tbody><tr>
<td><span>(</span><span><a>place-image/align</a></span><span>=C2=A0</span><=
span>(</span><span><a>circle</a></span><span>=C2=A0</span><span>8</span><sp=
an>=C2=A0</span><span>"solid"</span><span>=C2=A0</span><span>&quo=
t;tomato"</span><span>)</span></td>
</tr><tr><td><span><span>=C2=A0=C2=A0=C2=A0=C2=A0</span></span><span>=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0</span><span>32</span><span>=C2=A0</=
span><span>32</span><span>=C2=A0</span><span>"center"</span><span=
>=C2=A0</span><span>"center"</span></td>
</tr><tr><td><span><span>=C2=A0=C2=A0=C2=A0=C2=A0</span></span><span>=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0</span><span>(</span><span><a>rectan=
gle</a></span><span>=C2=A0</span><span>32</span><span>=C2=A0</span><span>32=
</span><span>=C2=A0</span><span>"outline"</span><span>=C2=A0</spa=
n><span>"black"</span><span>)</span><span>)</span><span>)</span><=
/td>
</tr></tbody></table><br>"place-image" shows the same behavior. M=
y racket version is : 5.0.2.1--2010-10-21.<br><br>I am also getting a "=
;test : bad syntax" message.<br><br>iZzeT<br><br>%3Fcmd%3Dview%2520aud=
it-trail%26database%3Ddefault%26pr%3D10969
</blockquote></div><br>
--0016364269814a97420493219150--