# \[Fwd: \[psychtoolbox\] Re: DrawLine, Mac OS9, 2\]

**URL:** <https://psychtoolbox.discourse.group/t/fwd-psychtoolbox-re-drawline-mac-os9-2/1611>\
**Category:** Uncategorized\
**Created:** [April 25, 2006, 8:43pm UTC](https://psychtoolbox.discourse.group/t/fwd-psychtoolbox-re-drawline-mac-os9-2/1611 "2006-04-25T20:43:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Allen\_Ingling](https://avatars.discourse-cdn.com/v4/letter/a/a183cd/32.png) [@Allen\_Ingling](https://psychtoolbox.discourse.group/u/Allen_Ingling)\
**Post date:** [April 25, 2006, 8:43pm UTC](https://psychtoolbox.discourse.group/t/fwd-psychtoolbox-re-drawline-mac-os9-2/1611/1 "2006-04-25T20:43:02Z")

</div>

Hello Frans!  
  
Thanks for your patient tutoring!&nbsp;&nbsp; Look, what is supposed to be displayed with your code is a white square in the upper left of the screen with an blique line running from the upper left corner to the lower right corner of the SQUARE,&nbsp; not the screen, right?&nbsp; B/c, we are sending the lower right coordinates of the rect for the line's terminating point?&nbsp;&nbsp;   
  
I've been working so long and so hard on this, I feel like I am being really stupid about sometThe upper left corner is just where i think it should be, tucked away nicely right near the corner.&nbsp; But, the lower right corner is in the middle of the screen.&nbsp;&nbsp; Again, it seems as if my coordinate space is 200 by 200.&nbsp;&nbsp;&nbsp; I do not understand why the coordinates are so darned off.&nbsp;&nbsp;   
  
Cheers  
  
Dawn  
  
  
  
-------- Original Message --------

| Subject: | [psychtoolbox] Re: DrawLine, Mac OS9, 2 |
| Date: | Tue, 25 Apr 2006 19:21:12 -0000 |
| From: | franswcornelissen [\<f.w.cornelissen@...\>](mailto:f.w.cornelissen@...) |
| Reply-To: | [psychtoolbox@yahoogroups.com](mailto:psychtoolbox@yahoogroups.com) |
| To: | [psychtoolbox@yahoogroups.com](mailto:psychtoolbox@yahoogroups.com) |

  
  

```
Dawn
, what do you get when you do include in your program:
rect=[10 10 100 100];
Screen(window, 'FrameRect', white, rect);
Screen(window, 'DrawLine', white, rect(1), rect(2), rect(3), rect(4));

NB: I would expect a white square in upper left corner of your screen, with an
oblique line running from topleft to bottomright of screen.
Anything else would be really weird.

Gr.
Frans

Post your message to:[psychtoolbox@yahoogroups.com](mailto:psychtoolbox@yahoogroups.com)Please indicate OS9, OSX, or WIN version, and include your full name.
Denis Pelli, David Brainard, and Allen Ingling.[http://psychtoolbox.org](http://psychtoolbox.org)Yahoo! Groups Links

<*> To visit your group on the web, go to:[http://groups.yahoo.com/group/psychtoolbox/](http://groups.yahoo.com/group/psychtoolbox/)<*> To unsubscribe from this group, send an email to:[psychtoolbox-unsubscribe@yahoogroups.com](mailto:psychtoolbox-unsubscribe@yahoogroups.com)<*> Your use of Yahoo! Groups is subject to:[http://docs.yahoo.com/info/terms/](http://docs.yahoo.com/info/terms/)
```
  

```
-- 

Dawn Morales, PhD Desk: 215-573-8535[http://www.psych.upenn.edu/~dmorales/](http://www.psych.upenn.edu/~dmorales/)Kirschstein-NRSA Postdoctoral Fellow
Center for Cognitive Neuroscience &
Department of Psychology
University of Pennsylvania
```
