home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.postscript
- Path: sparky!uunet!timbuk.cray.com!walter.cray.com!orac.cray.com!goldman
- From: goldman@orac.cray.com (Goldman of Chaos)
- Subject: Re: problem manipulating binary data in postscript
- Message-ID: <1992Dec28.112014.21150@walter.cray.com>
- Lines: 21
- Nntp-Posting-Host: orac.cray.com
- Organization: Cray Research, Inc.
- References: <1992Dec28.171257.27785@news2.cis.umn.edu>
- Date: 28 Dec 92 11:20:13 CST
-
- In article <1992Dec28.171257.27785@news2.cis.umn.edu> cahoon@femto.cs.umn.edu (Forrest Clinton Cahoon) writes:
- >I'm trying to write some postscript which will color a hexagonal grid,
- >reading the color data from the end of my ps file. I'm reading one
- >byte for each hexagon, then doing some bit-twiddling to get values to call
- >setrgbcolor with before filling the hexagon.
- >
- >I've got a version using "read" which works, but since "read" treats my
- >newline characters as valid binary data, it's not entirely
- >satisfactory.
-
- Cool, please let me know what you come up with. I've been playing
- around with multi-colored hex maps; however, I've been building the
- hex map one hex at a time. The end result is nice; however, there
- must be a better way to go about it.
-
- Matt Goldman
- --
- Matthew Goldman E-mail: goldman@orac.cray.com
- Fax: (612) 683-3099 Work: (612) 683-3061
- "Say George, I don't mean to interrupt, but
- there's a glowing red dot on your forehead."
-