Colors for Rebol
[1/4] from: andy::flyingcat::com at: 15-Oct-2002 12:51
Hi:
I'm using Rebol on a linux system with an 8 bit display (X window
displau) (yes, that's right, 256 colors). I can't seem to get exactly
the colors I want on the screen using Rebol. For instance, if I do a
view/new layout [cat: box 300x100 255.255.255]
I get a white box, as I want. But if I then do
cat/color: 255.255.250 show cat
I get the exact same shade of white.
If I use a non-Rebol program side by side, so I can be sure of what's
going on, like xterm, ie
xterm -background rgb:ff/ff/fa -geometry 100x100+100+100
I clearly see the Rebol program is displaying the same color for both
255.255.250 and 255.255.255
While xterm displays different colors.
Is there some setting anyone knows about that can give me the results I
need ?
Thanks,
Andy
[2/4] from: g:santilli:tiscalinet:it at: 15-Oct-2002 23:20
Hi Andy,
On Tuesday, October 15, 2002, 6:51:36 PM, you wrote:
AF> Is there some setting anyone knows about that can give me the results I
AF> need ?
I'm not sure I recall the name correctly, I hope so. Try to set:
system/view/screen-face/options: [exclusive-colors]
in your user.r. (There are other options as well, some of which
should be set by /View when you install it based on what you check
on the configuration window.) Anyway, it's possible that RT never
tested /View on a 256 color display... I used it a couple of times
on a Solaris box with 256 colors and I recall the colors being
wrong too.
Probably the Amiga version handles this much better, for obvious
reasons... :-)
Regards,
Gabriele.
--
Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer
Amigan -- AGI L'Aquila -- REB: http://web.tiscali.it/rebol/index.r
[3/4] from: andy:flyingcat at: 16-Oct-2002 0:37
Hi Gabriele:
Thanks for the tip; unfortunately it doesn't seem to help the problem.
I guess Rebol is locked into using only the colors it allocates. Maybe
I can unlock the colormap values, and directly change some of the ones
I'm not otherwise using to get the colors I need.
Andy
[4/4] from: g:santilli:tiscalinet:it at: 16-Oct-2002 13:21
Hi Andy,
On Wednesday, October 16, 2002, 6:37:54 AM, you wrote:
AF> I guess Rebol is locked into using only the colors it allocates. Maybe
AF> I can unlock the colormap values, and directly change some of the ones
AF> I'm not otherwise using to get the colors I need.
You might try to contact Holger Kruse directly, maybe he can give
you a solution. (Provided he still has time to read emails these
days.) His address is [holger--rebol--com].
Regards,
Gabriele.
--
Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer
Amigan -- AGI L'Aquila -- REB: http://web.tiscali.it/rebol/index.r