Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!bbn!uwmcsd1!ig!jade!ucbvax!ZERMATT.LCS.MIT.EDU!RWS From: RWS@ZERMATT.LCS.MIT.EDU (Robert Scheifler) Newsgroups: comp.windows.x Subject: X11 line patterns Message-ID: <871027094448.6.RWS@KILLINGTON.LCS.MIT.EDU> Date: Tue, 27-Oct-87 09:44:00 EST Article-I.D.: KILLINGT.871027094448.6.RWS Posted: Tue Oct 27 09:44:00 1987 Date-Received: Thu, 29-Oct-87 22:41:14 EST References: <26900014@uiucdcsm> Sender: daemon@ucbvax.BERKELEY.EDU Organization: The ARPA Internet Lines: 18 Date: 26 Oct 87 22:06:00 GMT From: grogers@m.cs.uiuc.edu Could some kind soul please explain X11's line styles. Read a PostScript manual (seriously). In particular, XSetDashes and how the values in the dash_list control which pixels are colored. Could you also relate this to the standard hardware line style register technique where a bit value of 1 means color that pixel with the current foreground color and a zero bit value means do nothing. If you view dash_list[i], which let us say has value N, as representing either N 1 bits or N 0 bits (depending on whether i is even or odd), then you should get the idea. Your "standard technique" corresponds to the OnOffDash line-style (at least on axis-aligned lines).