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