Article View: comp.sys.next.programmer
Article #2405Re: RGB Values of "NeXT Help Blue"
From: Thomas J. Baker
Date: Thu, 28 Jan 1993 12:33
Date: Thu, 28 Jan 1993 12:33
53 lines
2656 bytes
2656 bytes
In article <82110@hydra.gatech.EDU> cc100aa@xray.gatech.edu (Ray Spalding)
writes:
> There may be more going on here than meets the eye, so to speak :-).
>
> Look at the RTF code in:
> /usr/lib/NextStep/Resources/English.lproj/HelpTemplate/Index.rtfd/TXT.rtf
>
> Just guessing, but it looks to me like they encode both a color
> value (red56,green70,blue144) that the Text object will use to
> display certain text on a color device, AND a gray value (gray333)
> that it will use to display the same text on a gray-scale device.
>
> --
> Ray Spalding, Office of Information Technology
> Georgia Institute of Technology, Atlanta Georgia, 30332-0715
> Internet: ray.spalding@oit.gatech.edu (NeXT Mail accepted)
It seems we're getting close. I know the tiff's for the lines have both 24bit
and 2bit color representations in them. It seems like the text does too. But
does anyone know how to do this? The following bit of RTF is what happens in
the NeXT Help File:
{\colortbl;\red0\green0\blue0;\red56\green70\blue144;\red85\green85\blue85;}
\pard\tx720\tx1080\tx1440\tx1800\tx2160\tx2520\tx2880\tx3240\tx3600\tx3960\tx43
2
0\tx4680\tx5040\tx5400\tx5760\tx6120\tx6480\tx6840\tx7200\tx7560\f0\b0\i0\ulnon
e
\fs16\li360\fc1\cf1 \
\b\fs36 Index
\i
\b0\i0\fs20\gray333\fc2\cf2 (Click a topic to learn about it)
\b\fs36\gray0\fc1\cf1
\f1\b0\fs16 \
Both "Index" and "(Click a topic to learn about it)" are displayed in either
blue or dark gray depending on the window depth. Wouldn't it be great if you
could have different depth representations of an RTF file in Edit and be able
to switch between them, like in IconBuilder?
Anyway, if anyone knows how to generate this RTF (besides by hand) I'd like to
know.
Thanks,
tjb
--
=====================================================================
| Thomas Baker Director of the New Hampshire NeXT User Group |
| P.O. Box 213 Internet/NeXTmail: tjb@strangeways.unh.edu |
| Durham, NH 03824 Voice: (603) 743-4987 |
=====================================================================
Technical Details
Message-ID:
<1993Jan28.123355.6768@strangeways.unh.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!virgin!unhtel!mozz.unh.edu!strangeways.unh.edu!tjbReferences:
<82110@hydra.gatech.EDU>Show Full Headers
Complete Article Headers
Newsgroups: comp.sys.next.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!virgin!unhtel!mozz.unh.edu!strangeways.unh.edu!tjb From: tjb@strangeways.unh.edu (Thomas J. Baker) Subject: Re: RGB Values of "NeXT Help Blue" Message-ID: <1993Jan28.123355.6768@strangeways.unh.edu> Sender: tjb@strangeways.unh.edu (Thomas J. Baker) Reply-To: tjb@strangeways.unh.edu (Thomas J. Baker) Organization: Baker Consulting - Dover, NH References: <82110@hydra.gatech.EDU> Date: Thu, 28 Jan 1993 12:33:55 GMT Lines: 53