Article View: comp.lang.postscript
Article #5845Re: problem manipulating binary data in postscript
From: Goldman of Chaos
Date: Mon, 28 Dec 1992 17:20
Date: Mon, 28 Dec 1992 17:20
21 lines
1464 bytes
1464 bytes
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."
Technical Details
Message-ID:
<1992Dec28.112014.21150@walter.cray.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!timbuk.cray.com!walter.cray.com!orac.cray.com!goldmanReferences:
<1992Dec28.171257.27785@news2.cis.umn.edu>Show Full Headers
Complete Article Headers
Newsgroups: comp.lang.postscript Path: arc1-ca.pugleaf.net!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