Article View: comp.lang.logo
Article #223Re: LOGO riddle/task/thing to think about
From: Brian Harvey
Date: Thu, 01 Oct 1992 13:59
Date: Thu, 01 Oct 1992 13:59
18 lines
1564 bytes
1564 bytes
s2874066@techst02.technion.ac.il (Eyal Peleg) writes: > Draw a vertical line that starts from home [0 0] and ends at [0 90], > This line should not be a continuous one but should be 4 pixels on and 1 off > something like "---- ---- ---- ---- ---- ...." Boy, when I read this message the first time I thought "that's trivial, what's the deal?" But when I actually tried it I learned two things, one was the fencepost problem about pixels, and the other is that it's even harder in Berkeley Logo, because it tries to set the aspect ratio according to what the graphics hardware says is right, and for my CGA laptop that comes out some non-integer ratio. (Berkeley Logo tries to arrange things so that FD 100 fits within the splitscreen graphics area. For CGA that turns out to mean that one vertical turtle step is only (about) half a screen pixel. If I make it exactly half a screen pixel, I can get the desired dotted line with PD FD 2 PU FD 3!! If I use the setting that Berkeley Logo comes up with on its own, there's no way I can get uniform dotted lines. You can't win.)
Technical Details
Message-ID:
<1af08oINN3cc@agate.berkeley.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!dtix!darwin.sura.net!spool.mu.edu!agate!anarres.CS.Berkeley.EDU!bhReferences:
<1992Sep30.231110.27259@discus.technion.ac.il>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!dtix!darwin.sura.net!spool.mu.edu!agate!anarres.CS.Berkeley.EDU!bh From: bh@anarres.CS.Berkeley.EDU (Brian Harvey) Newsgroups: comp.lang.logo Subject: Re: LOGO riddle/task/thing to think about Message-ID: <1af08oINN3cc@agate.berkeley.edu> Date: 1 Oct 92 13:59:52 GMT References: <1992Sep30.231110.27259@discus.technion.ac.il> Organization: University of California at Berkeley Lines: 18 NNTP-Posting-Host: anarres.cs.berkeley.edu