<div dir="ltr">Jens,<div><br></div><div>I deleted my install of the soegaard library and had DrScheme re-download the 2 0 version -- things are the same as before.</div><div><br></div><div>I tried your segments-&gt;painter test and it worked properly (line segment from lower-left to center; anti-clockwise rotation).</div>
<div><br></div><div>When I run diagonal-shading, I am definitely getting (0,0) in upper left, (1,1) in lower right, and &nbsp;clockwise rotation with rotate90. &nbsp;</div><div><br></div><div>Thanks for looking into this... At least I know what the correct behavior is now; I&#39;ll pass this along to my students.</div>
<div><br></div><div>Fred</div><div><br><br><div class="gmail_quote">On Wed, Oct 1, 2008 at 4:49 AM, Jens Axel Soegaard <span dir="ltr">&lt;<a href="mailto:jensaxel@soegaard.net">jensaxel@soegaard.net</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="Ih2E3d">Fred G. Martin wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Dear Henderson-users,<br>
<br>
OK, this one threw us for a loop. &nbsp;I loaded soegaard&#39;s version of the<br>
Henderson stuff:<br>
 &nbsp;(require (planet &quot;sicp.ss&quot; (&quot;soegaard&quot; &quot;sicp.plt&quot; 2 0)))<br>
<br>
Then I tried rotate90 on einstein and mark-of-zorro.<br>
<br>
einstein gets rotated clockwise, but mark-of-zorro is rotated<br>
counter-clockwise (see attached).<br>
 &nbsp;<br>
</blockquote></div>
It is clearly a bug. Rotate90 is supposed to rotate the image 90 degrees in<br>
the positive direction (i.e. anti-clockwise).<div class="Ih2E3d"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Here is another (related?) anomoly. &nbsp;In looking at the code for zorro,<br>
it appears that (0,0) is in the lower-left and (1,) is in the<br>
upper-right:<br>
 &nbsp;<br>
</blockquote></div>
That sounds right.<div class="Ih2E3d"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
(define mark-of-zorro<br>
&nbsp;(let ((v1 (make-vect .1 .9))<br>
 &nbsp; &nbsp; &nbsp; (v2 (make-vect .8 .9))<br>
 &nbsp; &nbsp; &nbsp; (v3 (make-vect .1 .2))<br>
 &nbsp; &nbsp; &nbsp; (v4 (make-vect .9 .3)))<br>
 &nbsp; (segments-&gt;painter<br>
 &nbsp; &nbsp;(list (make-segment v1 v2)<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(make-segment v2 v3)<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(make-segment v3 v4)))))<br>
<br>
<br>
 &nbsp;<br>
</blockquote></div>
&gt; (paint (segments-&gt;painter<br>
 &nbsp; &nbsp; &nbsp; &nbsp; (list (make-segment (make-vect 0.0 0.0)<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; (make-vect 0.5 0.5)))))<br>
[image with segment from lower left to the center]<br>
<br>
&gt; (paint (rotate90<br>
 &nbsp; &nbsp; &nbsp; &nbsp; (segments-&gt;painter<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(list (make-segment (make-vect 0.0 0.0)<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(make-vect 0.5 0.5))))))<br>
[image with segment from lower right to the center]<br>
<br>
Conclusion: rotate90 works for painters produced by segments-&gt;painter.<br>
<br>
Since rotate90 doesn&#39;t use the representation of the painter,<br>
the code for rotate90 must be correct. Therefore there must be a problem<br>
with the construction of a painter from a bitmap.<div class="Ih2E3d"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
But when we tried the diagonal shader, it seems that (0,0) is in the<br>
UPPER-left. &nbsp;my-diag performs the same as the provided<br>
diagonal-shading:<br>
</blockquote>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
(define my-diag<br>
&nbsp;(procedure-&gt;painter (lambda (x y) (* 127 (+ x y)))))<br>
<br>
 &nbsp;<br>
</blockquote></div>
Another bug, the y-axis is reversed.<br>
<br>
<br>
I&#39;m slightly puzzled. I think I/we already fixed these bugs before. I wonder whether I<br>
accidently uploaded an old version. I&#39;ll get back to you either later today or<br>
tomorrow.<br><font color="#888888">
<br>
-- <br>
Jens Axel Søgaard<br>
<br>
</font></blockquote></div><br></div></div>