home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / sys / hp / 14737 < prev    next >
Encoding:
Internet Message Format  |  1993-01-11  |  2.2 KB

  1. From: hstroyan@hpfcso.FC.HP.COM (Howard Stroyan)
  2. Date: Mon, 11 Jan 1993 19:23:50 GMT
  3. Subject: Re: rubber band lines
  4. Message-ID: <7371526@hpfcso.FC.HP.COM>
  5. Organization: Hewlett-Packard, Fort Collins, CO, USA
  6. Path: sparky!uunet!zaphod.mps.ohio-state.edu!howland.reston.ans.net!usc!sdd.hp.com!hpscit.sc.hp.com!hplextra!hpfcso!hstroyan
  7. Newsgroups: comp.sys.hp
  8. References: <28291@dog.ee.lbl.gov>
  9. Lines: 36
  10.  
  11. In comp.sys.hp, mike@inti.lbl.gov (Michael Helm) writes:
  12.  
  13. > This is a rather trivial question but I hope someone can steer me
  14. > towards some understanding.  I can't seem to get rubber band lines to
  15. > happen on an HP-UX X server (some post 8.0 HPUX OS, using mwm, I think
  16. > with whatever xllr-level HP ships, PA & non-PA).  The same kinds of
  17. > client code work on other X servers like X11R5 on a sun, openlook &c
  18. > -- it's not the code, but how the different X servers feel about it,
  19. > it seems.  I've tried some really simple low level things, such as out
  20. > of Johnson & Reichard, without getting anything to happen in HPUX
  21. > land.  I'd appreciate some advice or trivial examples that should work
  22. > in an HPUX environment.  What I don't know about X seems to fill
  23. > volumes -- please be merciful!
  24.  
  25. You haven't given a lot to go on, but I think I may have some insight.
  26.  
  27. I assume you are "GXor" rendering to product the "rubber band lines".
  28.  
  29. This type of rendering is a shot in the dark (or actually the colormap)
  30. when it comes to predicting the results.  The underlying assumption
  31. is that the XOR of the source and destination color indices will produce 
  32. a resulting color index and associated color which is visually different 
  33. than the origin destination's color.  There is only luck to count on that
  34. this will be the case (unless you stack the deck and know the resulting
  35. indices and colors apriori).
  36.  
  37. Since the result that you are seeing on the HP display is not happening to 
  38. workout well, you can try a new toss of the dice by changing the Source
  39. (i.e. foreground) color that you are rendering.  This will cause the XOR
  40. to produce a different set of results and potentially a more distinct 
  41. color.
  42.  
  43. --
  44. Howard Stroyan                                         
  45. Hewlett-Packard                                        hstroyan@fc.hp.com
  46. Systems Technology Division                     
  47.